diff options
| author | Baitinq <[email protected]> | 2025-01-23 18:21:53 +0100 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2025-01-23 18:21:53 +0100 |
| commit | a3bd04053d2326e3d80fd83be379d34ba5d94190 (patch) | |
| tree | 14a620d2ca6870878f4c00c6faa7d46fe97fa859 /examples | |
| parent | Tokenizer: Fix bug with offset incrementing (diff) | |
| download | pry-lang-a3bd04053d2326e3d80fd83be379d34ba5d94190.tar.gz pry-lang-a3bd04053d2326e3d80fd83be379d34ba5d94190.tar.bz2 pry-lang-a3bd04053d2326e3d80fd83be379d34ba5d94190.zip | |
Misc: Improve example
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/7.src | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/examples/7.src b/examples/7.src index 9846af5..8f944a4 100644 --- a/examples/7.src +++ b/examples/7.src @@ -1,7 +1,11 @@ +let ten = () => { + return 10; +}; + let main = () => { let i = 4; - if (1 - -1 * 2) == 5 - (10 / 2) + 3 { + if (1 - -1 * 2) == 5 - (-1 + 1 + ten() / 2) + 3 { print(i); return i; }; |