Held Wednesday, April 4, 2001
Today we begin our investigations of Script-Fu, the Scheme-like language used for programming the GIMP.
sumwe did in class. We did that version of
sumon the first day we studied recursion. The key idea was that we used a helper function that took an extra parameter that kept track of the sum of the first k numbers in the list. You can see a newer version of the code (that uses all the clever design tricks we've learned) in
complementwould be useful. For a predicate, p,
complementreturns the "opposite" predicate (one that returns false when p returns true and vice versa). Here's a definition sans comment
(define complement (lambda (pred?) (lambda (val) (not (pred? val)))))
Friday, 12 January 2001
Wednesday, 4 April 2001
Thursday, 5 April 2001
Disclaimer: I usually create these pages on the fly. This means that they are rarely proofread and may contain bad grammar and incorrect details. It also means that I may update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.
This page was generated by Siteweaver on Wed May 5 12:15:05 2004.
This page may be found at
You may validate this page's HTML.
The source was last modified Thu Apr 5 08:24:41 2001.