Higher-order functions: Difference between revisions

Content deleted Content added
m Added a Trith example.
m →‎{{header|Trith}}: Fixed whitespace.
Line 1,183: Line 1,183:
=={{header|Trith}}==
=={{header|Trith}}==
Due to the homoiconic program representation and the [[concatenative]] nature of the language, higher-order functions are as simple as:
Due to the homoiconic program representation and the [[concatenative]] nature of the language, higher-order functions are as simple as:
<lang trith>
<lang trith>: twice 2 times ;
: twice 2 times ;
: hello "Hello, world!" print ;
: hello "Hello, world!" print ;
[hello] twice
[hello] twice</lang>
</lang>


=={{header|Ursala}}==
=={{header|Ursala}}==