diff options
| author | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:53:04 +0200 |
|---|---|---|
| committer | admin (centauri.fritz.box) <puppet@mx.buetow.org> | 2014-06-30 23:53:04 +0200 |
| commit | adc4b59a3e7c9db6f33670164490830d87331228 (patch) | |
| tree | adc5d21856852bfb5c3cca794a9c07ad476d877e /examples/functions.fy | |
| parent | 63cf3028445d8d213ffc774f77aafd7283cb4fbd (diff) | |
| parent | 5ab5de91eb0ae6ed9db78a2c8c47ec67f105e504 (diff) | |
Mergebuild-010393-lambda
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 |
