IUCompilerCourse / public-student-support-code

Public helper code for p423/p523 students (Racket)
MIT License
154 stars 67 forks source link

fix type-check-Lfun for `Apply` type-check #17

Open xc42 opened 2 years ago

xc42 commented 2 years ago

Quote from Racket document:

The for form iterates by drawing an element from each sequence; if any sequence is empty, then the iteration stops

so if apply function with less or more arguments would still pass type-check in original code, the for-each checks length.