Higher-order functions: Difference between revisions

m
→‎Icon and Unicon: header simplification
m (→‎{{header|Perl 6}}: off by one error)
m (→‎Icon and Unicon: header simplification)
Line 707:
Note that <tt>func (\x y -> x+y)</tt> is equivalent to <tt>func (+)</tt>. (Operators are functions too.)
 
== {{header|Icon}} and {{header|Unicon }}==
==={{headerworks with|Unicon}}===
==={{header|Icon}}===
<lang icon> procedure main()
local lst
Line 722:
write("->", arg)
end</lang>
==={{header|Unicon}}===
This Icon solution works in Unicon.
 
=={{header|Inform 7}}==
Anonymous user