typst/tests/typ/control
Laurenz c94a18833f Closures and function definitions 🚀
Supports:
- Closure syntax: `(x, y) => z`
- Shorthand for a single argument: `x => y`
- Function syntax: `let f(x) = y`
- Capturing of variables from the environment
- Error messages for too few / many passed arguments

Does not support:
- Named arguments
- Variadic arguments with `..`
2021-03-03 17:53:40 +01:00
..
for-pattern.typ Index + value iteration for arrays 🦚 2021-02-24 18:54:06 +01:00
for.typ Closures and function definitions 🚀 2021-03-03 17:53:40 +01:00
if.typ While loops 🔁 2021-02-24 21:29:32 +01:00
invalid.typ While loops 🔁 2021-02-24 21:29:32 +01:00
let.typ Closures and function definitions 🚀 2021-03-03 17:53:40 +01:00
while.typ Closures and function definitions 🚀 2021-03-03 17:53:40 +01:00