|
@@ -2017,14 +2017,12 @@ recursive functions:
|
|
|
```
|
|
|
|
|
|
Under the hood, `fn` defines a variable with the given name plus `~` (see
|
|
|
-[variable suffix](#variable-suffix)).
|
|
|
+[variable suffix](#variable-suffix)). Example:
|
|
|
|
|
|
```elvish-transcript
|
|
|
-~> fn f []{ echo hello from f }
|
|
|
-~> f
|
|
|
-hello from f
|
|
|
-~> ff = $f~
|
|
|
-~> $ff
|
|
|
+~> fn f { echo hello from f }
|
|
|
+~> var v = $f~
|
|
|
+~> $v
|
|
|
hello from f
|
|
|
```
|
|
|
|