![]() |
![]() |
|
home—info—lectures—exams—hws—archive
Review list functions: count-evens count-good-items filter ; filter-less-than : real (list-of real) -> (list-of real) (define (filter-less-than threshold data) ...) ; How to write this, by calling filter ? lambda Higher-order functions! Typed scheme: module with contracts, and using that module. language shorthand: let* #; list vs cons; ' ` , ,@ Compare the same code in Java vs Scheme The methods first, rest. Java's loops; the sublist method. UtilIan.java/
home—info—lectures—exams—hws—archive
©2009, Ian Barland, Radford University Last modified 2009.Feb.16 (Mon) |
Please mail any suggestions (incl. typos, broken links) to ibarland ![]() |
![]() |