wrap.scp (258B)
1 !export wrap 2 -- Put any input tree into a one-element list; state is ignored. 3 -- Example: wrap 7 produces [7]. Unlike a maybe-shaped stem value, the 4 -- result has a proper empty-list tail so other list consumers can use it. 5 consumer wrap 6 x @ _ => [x | []]