First-class functions: Difference between revisions
Content added Content deleted
(Lingo added) |
|||
Line 1,505: | Line 1,505: | ||
=={{header|Lingo}}== |
=={{header|Lingo}}== |
||
Lingo does not support functions as first-class objects. But with the limitations described under |
Lingo does not support functions as first-class objects. But with the limitations described under [https://www.rosettacode.org/wiki/Function_composition#Lingo Function composition] the task can be solved: |
||
<lang lingo>A = [#sin, #cos, #square] |
<lang lingo>A = [#sin, #cos, #square] |
||
B = [#asin, #acos, #sqrt] |
B = [#asin, #acos, #sqrt] |