summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
b4cb2d9)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
3. (Easy) Write a function `equal_length` that returns true just in case
two lists have the same length. That is,
3. (Easy) Write a function `equal_length` that returns true just in case
two lists have the same length. That is,
- equal_length mylist (make_list junk (make_list junk (make_list junk empty)))
- ~~> true
+ equal_length mylist (make_list junk (make_list junk (make_list junk empty))) ~~> true
- equal_length mylist (make_list junk (make_list junk empty))) ~~> false
+ equal_length mylist (make_list junk (make_list junk empty))) ~~> false
4. (Still easy) Now write the same function, but don't use the length
4. (Still easy) Now write the same function, but don't use the length