diff options
author | Hans Hagen <pragma@wxs.nl> | 2020-04-30 12:13:51 +0200 |
---|---|---|
committer | Context Git Mirror Bot <phg@phi-gamma.net> | 2020-04-30 12:13:51 +0200 |
commit | 3d0fae7aaf79674a41d2bdaf5b3c2a3a4d8113db (patch) | |
tree | 71000213a0ad03271f979540ca8d5ca62dcae59e /doc/context/sources/general/manuals/luametatex/luametatex-nodes.tex | |
parent | ec61c4f30162e22f1063e582a69a845ea968ef6e (diff) | |
download | context-3d0fae7aaf79674a41d2bdaf5b3c2a3a4d8113db.tar.gz |
2020-04-30 11:13:00
Diffstat (limited to 'doc/context/sources/general/manuals/luametatex/luametatex-nodes.tex')
-rw-r--r-- | doc/context/sources/general/manuals/luametatex/luametatex-nodes.tex | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/context/sources/general/manuals/luametatex/luametatex-nodes.tex b/doc/context/sources/general/manuals/luametatex/luametatex-nodes.tex index c7eb9013d..d5f604132 100644 --- a/doc/context/sources/general/manuals/luametatex/luametatex-nodes.tex +++ b/doc/context/sources/general/manuals/luametatex/luametatex-nodes.tex @@ -2095,6 +2095,16 @@ consistency. You can of course always define additional accessors using \type {getfield} and \type {setfield} with little overhead. When the second argument of \type {setattributelist} is \type {true} the current attribute list is assumed. +The \type {reverse} function reverses a given list. The \type {exchange} function +swaps two nodes; it takes upto three arguments: a head node, and one or two to be +swapped nodes. When there is no third argument, it will assume that the node +following node is to be used. So we have: + +\starttyping +head = node.direct.reverse(head) +head = node.direct.exchange(head,first,[second]) +\stoptyping + In \CONTEXT\ some of the not performance|-|critical userdata variants are emulated in \LUA\ and not in the engine, so we retain downward compatibility. @@ -2235,6 +2245,8 @@ emulated in \LUA\ and not in the engine, so we retain downward compatibility. \supported {setwhd} \nop \yes \relax \supported {setwidth} \nop \yes \relax \supported {slide} \nop \yes \yes +\supported {reverse} \nop \yes \relax +\supported {exchange} \nop \yes \relax \supported {start_of_par} \nop \yes \relax \supported {subtype} \nop \nop \relax \supported {tail} \yes \yes \relax |