Jump to content

Higher-order functions: Difference between revisions

Added uBasic/4tH version
(→‎{{header|Picat}}: Added subsections)
(Added uBasic/4tH version)
Line 4,059:
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}}==
{{trans|Python}}
374

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.