Higher-order function: Difference between revisions

Content deleted Content added
Scheme: The example for before was not for the function twice but for curried addition.
Tags: Mobile edit Mobile web edit
Scheme: Added indentation
Tags: Mobile edit Mobile web edit
Line 764:
<syntaxhighlight lang="scheme">
(define (twice f)
(lambda (x) (f (f x))))
</syntaxhighlight>