call function with given list of parameters
Parameters
call function :string :literal :function
params :block
Attributes
external | :string | path to external library |
expect | :type | expect given return type |
Returns
Examples
copy
multiply: function [x y][
x * y
]
call 'multiply [3 5]
copy
call $[x][x+2] [5]
copy
call.external: "mylib" 'sayHello ["John"]
doubleNum: function [num][
ensure -> integer? num
call .external: "mylib"
.expect: :integer
'doubleNum @[num]
]
loop 1..3 'x [
print ["The double of" x "is" doubleNum x]
]
Related