RosettaCodeData/Task/Higher-order-functions/Scheme/higher-order-functions-1.ss
Ingy döt Net db842d013d A-M baby
2013-04-10 21:29:02 -07:00

4 lines
167 B
Scheme

> (define (func1 f) (f "a string"))
> (define (func2 s) (string-append "func2 called with " s))
> (begin (display (func1 func2)) (newline))
func2 called with a string