Higher-order functions: Difference between revisions

Content added Content deleted
(→‎{{header|Picat}}: Added subsections)
(Added uBasic/4tH version)
Line 4,059: Line 4,059:
3:c:s</pre>
3:c:s</pre>


=={{header|uBasic/4tH}}==
{{trans|BBC BASIC}}
<lang>' Test passing a function to a function:
Print FUNC(_FNtwo(_FNone, 10, 11))
End
' Function to be passed:
_FNone Param (2) : Return ((a@ + b@)^2)

' Function taking a function as an argument:
_FNtwo Param (3) : Return (FUNC(a@ (b@, c@)))</lang>
{{out}}
<pre>441

0 OK, 0:79</pre>
=={{header|Ursa}}==
=={{header|Ursa}}==
{{trans|Python}}
{{trans|Python}}