19 lines
410 B
Plaintext
19 lines
410 B
Plaintext
// function with no arguments
|
|
no_args()
|
|
|
|
// function with fixed amount of arguments
|
|
three_args(a, b, c)
|
|
|
|
// nanoquery does not support optional, variable, or named arguments
|
|
|
|
// obtaining a return value
|
|
value = returns_value()
|
|
|
|
// checking if a function called "func" is user-defined
|
|
try
|
|
type(func)
|
|
println "func is user-defined"
|
|
catch
|
|
println "func is a built-in or doesn't exist"
|
|
end
|