diff options
Diffstat (limited to 'examples/functions.fy')
| -rw-r--r-- | examples/functions.fy | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/examples/functions.fy b/examples/functions.fy deleted file mode 100644 index 15856a0..0000000 --- a/examples/functions.fy +++ /dev/null @@ -1,25 +0,0 @@ -#* - * Examples of how to use functions - *# - -func foo { - say 1 + a * 3 + b; - - func bar { - say "Hello i am nested"; - } - - bar; # Calling nested -} - -my a = 2, b = 4; # Create global variables -foo; -assert 0 == (defined bar); # bar is not available anymore - -func baz { - say "I am baz"; - undef baz; -} - -baz; # Baz deletes itself -assert 0 == (defined baz); # baz is not available anymore |
