; pa2.scm - partial (pre) application of two arguments to a function of three arguments
(define pa
(lambda (f x y)
(lambda (z)
(f x y z))))
(define display-path
(pa (lambda (x y z) (display (format "~a," (+ x (* y z))))) 3 2))
(for-each display-path
'(1 2 3 4 5))
;5,7,9,11,13 Text file Source (historic): geocities.com/soho/square/3472
geocities.com/soho/squaregeocities.com/soho
(to report bad content: archivehelp @ gmail)
|
|
|
|
|