diff options
| author | nodist <kevin.comas.git@gmail.com> | 2026-08-27 20:35:51 -0400 |
|---|---|---|
| committer | nodist <kevin.comas.git@gmail.com> | 2026-08-27 20:35:51 -0400 |
| commit | 85773659adcced87804c6304fb71c9ea33ae43eb (patch) | |
| tree | d9dde3bf623c104989a1d9d1b7aba1348c8ce80b /docs/syntax.md | |
| parent | fd6892ff64b102bd494da0b1eea3113e758e6995 (diff) | |
Diffstat (limited to 'docs/syntax.md')
| -rw-r--r-- | docs/syntax.md | 26 |
1 files changed, 12 insertions, 14 deletions
diff --git a/docs/syntax.md b/docs/syntax.md index 08f87a4..8be80a6 100644 --- a/docs/syntax.md +++ b/docs/syntax.md @@ -100,20 +100,18 @@ ## Lambdas ``{[arguments] ... }` -### ``return - -### ``sync - -### ``async - -### ``await +```text +add : `{[I64 x; I64 y] x + y } +add `sync (1; 2) +``` ## Generators `^{[arguments] ... }` -### ``init - -### ``yield - -### ``done - -### ``next +```text +gen : ^{[I64 n] + @ 1 .. n {[x] `yield x } + `stop +} +it : gen `init 10 +`next it +``` |
