summaryrefslogtreecommitdiff
path: root/docs/type_system/fn.md
diff options
context:
space:
mode:
authornodist <kevin.comas.git@gmail.com>2026-05-22 13:13:47 -0400
committernodist <kevin.comas.git@gmail.com>2026-05-22 13:13:47 -0400
commitaa58218da7a3ce3587a768f85323c3ce2212f6b2 (patch)
tree18f49b3d00d946cb4efb1562397b255909670395 /docs/type_system/fn.md
parentc71cd186644570eb25c45ded7837b0e7aa54987a (diff)
add operators for bit type
Diffstat (limited to 'docs/type_system/fn.md')
-rw-r--r--docs/type_system/fn.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/docs/type_system/fn.md b/docs/type_system/fn.md
index 78c7918..dbc8251 100644
--- a/docs/type_system/fn.md
+++ b/docs/type_system/fn.md
@@ -22,12 +22,12 @@ Return `Void` to stop iteration
```text
fn : Fn[n] $ ( @ 1 .. n { `yield 2 * x }[x] )
-it : fn `sync 10
+it : fn `call 10
// invoking
@ it { `log v }[v] // 2 4 6 8 10 12 14 16 18 20
// same as above
@ {
- # `sync it {
+ # `call it {
.value { `log v }[v]
.done { `break }
}
@@ -36,15 +36,15 @@ it : fn `sync 10
# Calling
-## \`async
+## \`fork
```text
-task : `async fn
+task : `fork fn
value : `wait task
```
-## \`sync
+## \`call
```text
-fn `sync args // `wait fn `async args
+fn `call args // `wait fn `task args
```