First-class functions: Difference between revisions

Content added Content deleted
Line 1,506: Line 1,506:
=={{header|Lingo}}==
=={{header|Lingo}}==
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:
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>-- sin, cos and sqrt are built-in, square, asin and acos are user-defined
A = [#sin, #cos, #square]
B = [#asin, #acos, #sqrt]
B = [#asin, #acos, #sqrt]