mirror of
https://github.com/typst/typst
synced 2025-06-28 16:22:53 +08:00
parent
9dd8ad7b19
commit
862d3b7684
@ -822,6 +822,10 @@ In Typst, all functions are _pure._ This means that for the same
|
|||||||
arguments, they always return the same result. They cannot "remember" things to
|
arguments, they always return the same result. They cannot "remember" things to
|
||||||
produce another value when they are called a second time.
|
produce another value when they are called a second time.
|
||||||
|
|
||||||
|
The only exception are built-in methods like
|
||||||
|
[`array.push(value)`]($type/array.push). These can modify the values they are
|
||||||
|
called on.
|
||||||
|
|
||||||
## Methods
|
## Methods
|
||||||
### with()
|
### with()
|
||||||
Returns a new function that has the given arguments pre-applied.
|
Returns a new function that has the given arguments pre-applied.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user