Anonymous user
Call a function: Difference between revisions
→{{header|Déjà Vu}}: Fixes example
(→{{header|Déjà Vu}}: Fixes example) |
(→{{header|Déjà Vu}}: Fixes example) |
||
Line 316:
=={{header|Déjà Vu}}==
<lang dejavu># all functions
# calling a function with no arguments:
random-int
Line 323:
# calling a function with optional arguments:
# optional arguments are not really possible as such
▲# 1) differently named functions:
sort [ 3 2 1 ]
sort-by @len [ "Hello" "World" "Bob" ]
# calling a function with a variable number of arguments:
# generally with a special terminator value, which one depends
Line 349 ⟶ 346:
# arguments are passed by object-identity, like in Python and Lua
# partial application is not possible, due to the fact that
# a function's arity is a property of
# of
=={{header|Erlang}}==
|