RosettaCodeData/Task/Higher-order-functions/Ol/higher-order-functions.ol
2019-09-12 10:33:56 -07:00

9 lines
176 B
Text

; typical use:
(for-each display '(1 2 "ss" '(3 4) 8))
; ==> 12ss(quote (3 4))8'()
; manual implementation in details:
(define (do f x)
(f x))
(do print 12345)
; ==> 12345