summaryrefslogtreecommitdiff
path: root/docs/type_system/fn.md
diff options
context:
space:
mode:
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
```