Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Call-a-function/Nanoquery/call-a-function.nanoquery
Normal file
18
Task/Call-a-function/Nanoquery/call-a-function.nanoquery
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue