Jump to content

Function definition: Difference between revisions

→‎{{header|TXR}}: Explicit -B to show variable bindings.
(added swift)
(→‎{{header|TXR}}: Explicit -B to show variable bindings.)
Line 1,611:
<lang txr>@(do (defun mult (a b) (* a b))
(format t "3 * 4 = ~a\n" (* 3 4)))</lang>
<pre>$ txr -B multiply2.txr
3 * 4 = 12</pre>
 
=={{header|UNIX Shell}}==
Note that in the Unix shell, function definitions do not include any argument specifications within the parentheses. Instead arguments to functions are obtained using the positional parameters.
543

edits

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