Higher-order function: Difference between revisions

Content deleted Content added
Scheme: Added indentation
Tags: Mobile edit Mobile web edit
Scheme: Added plus three example
Tags: Mobile edit Mobile web edit
Line 765:
(define (twice f)
(lambda (x) (f (f x))))
 
(define (plus-three x) (+ x 3))
((twice plus-three) 5)
</syntaxhighlight>