ncleave ( quots n -- quot )

Factor handbook » The language » Combinators » Generalized shuffle words and combinators » Generalized combinators

Factor handbook » The language » Combinators » Generalized shuffle words and combinators » Generalized combinators

Prev: | napply ( quot n -- ) |

Next: | nspread ( quots n -- quot ) |

Vocabulary

generalizations

Inputs

Outputs

None

Word description

A generalization of cleave and 2cleave that can work for any quotation arity.

Examples

Some core words expressed in terms of ncleave:

Definition

generalizations

Inputs

quots | a sequence of quotations |

n | an integer |

Outputs

None

Word description

A generalization of cleave and 2cleave that can work for any quotation arity.

Examples

Some core words expressed in terms of ncleave:

cleave | 1 ncleave |

2cleave | 2 ncleave |

Definition