Higher-order functions: Difference between revisions

added Ol
(added Ol)
Line 2,012:
Here we pass #1+ to map :
<lang Oforth>[1, 2, 3, 4, 5 ] map(#1+)</lang>
 
=={{header|Ol}}==
<lang>
; 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
</lang>
 
=={{header|ooRexx}}==