First-class functions/Use numbers analogously: Difference between revisions

Content added Content deleted
No edit summary
Line 467: Line 467:


The following is a Unicon solution. It can be recast in Icon, but only at the cost
The following is a Unicon solution. It can be recast in Icon, but only at the cost
of losing the "function-call" syntax on the created "function".
of losing the "function-call" syntax on the created "procedure". The solution uses
the same basic foundation that is buried in the "compose" procedure in the
First-class functions task solution. The solution here
is simpler and more direct since it handles a specific function definition.
<lang unicon>import Utils
<lang unicon>import Utils