Anonymous user
Higher-order functions: Difference between revisions
added Ursala
(+ AutoHotkey) |
(added Ursala) |
||
Line 890:
[ invoke ] is second
` first second
=={{header|Ursala}}==
Autocomposition is a user defined function that
takes a function as an argument, and returns a function
equivalent to the given functon composed with itself.
<lang Ursala>(autocomposition "f") "x" = "f" "f" "x"</lang>
test program:
<lang Ursala>#import flo
#cast %e
example = autocomposition(sqrt) 16.0</lang>
output:
<pre>2.000000e+00</pre>
=={{header|V}}==
|