Thun/docs/reference/nullary.md

670 B

Combinator Run a quoted program without using any stack values and leave the first item of the result on the stack. ... [P] nullary
## nullary Combinator Run a quoted program without using any stack values and leave the first item of the result on the stack. ... [P] nullary
        ... a

Definition

[stack]

Example

... [P] nullary
... [P] [stack] dip infra first
... stack [P] infra first
... [...] [P] infra first
... [a ...] first
...  a

Discussion

A very useful function that runs any other quoted function and returns it's first result without disturbing the stack (under the quoted program.)

unary binary ternary