nullary ( quot -- ) (original) (raw)

nullary ( quot -- )
Factor handbook » The language » Combinators » Smart combinators

Next: input<sequence ( seq quot -- )

Vocabulary
combinators.smart

Inputs

quot a quotation

Outputs
None

Word description
Infers the number of inputs to a quotation and drops them from the stack.

Examples

USING: combinators.smart kernel math ; 1 2 [ + ] nullary

Definition

USING: kernel ;

IN: combinators.smart

: nullary ( quot -- ) dropping call ; inline