Call a function: Difference between revisions
Content added Content deleted
m (→EasyLang) |
m (→{{header|jq}}: <tt> should be </tt>) |
||
Line 3,302: | Line 3,302: | ||
'''Using a function in statement context''' |
'''Using a function in statement context''' |
||
The assignment to a local variable (e.g. <tt>(2*2) as $two<tt>) is similar to a statement context in that the expression as a whole does nothing to the flow of values from its input to its output. |
The assignment to a local variable (e.g. <tt>(2*2) as $two</tt>) is similar to a statement context in that the expression as a whole does nothing to the flow of values from its input to its output. |
||
'''Using a function in first-class context within an expression''' |
'''Using a function in first-class context within an expression''' |
||
Line 3,328: | Line 3,328: | ||
See [[Currying#jq]]. |
See [[Currying#jq]]. |
||
=={{header|Julia}}== |
=={{header|Julia}}== |
||
<syntaxhighlight lang="julia"> |
<syntaxhighlight lang="julia"> |