Call a function: Difference between revisions

Content added Content deleted
(→‎{{header|Déjà Vu}}: Fixes example)
(→‎{{header|Déjà Vu}}: Fixes example)
Line 316:
 
=={{header|Déjà Vu}}==
<lang dejavu># all functions except fooused are from the standard library
# 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)generally differently named functions are used:
# strategies are:
# 1) differently named functions:
sort [ 3 2 1 ]
sort-by @len [ "Hello" "World" "Bob" ]
# 2) differentiate by value of other arguments:
foo ?????????????????????????????????????????????????????
# 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 it'sits behavior and not
# of it'sits definition</lang>
 
=={{header|Erlang}}==