Add chain helper method to library
This commit is contained in:
parent
4e82a51212
commit
f8076e6b66
1 changed files with 5 additions and 0 deletions
|
|
@ -23,3 +23,8 @@
|
|||
// Determined by experiments so that the top and bottom white border are roughly
|
||||
// the same size after tearing off the paper.
|
||||
#let feed = v(64pt + 32pt)
|
||||
|
||||
#let chain(..args) = {
|
||||
assert(args.pos().len() > 0, message: "args required")
|
||||
args.pos().slice(0, -1).rev().fold(args.pos().at(-1), (x, f) => f(x))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue