RosettaCodeData/Task/Higher-order-functions/Scheme/higher-order-functions-1.ss
2023-07-01 13:44:08 -04: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