2tri@ ( u v w x y z quot -- )

Factor handbook » The language » Combinators » Dataflow combinators » Apply combinators

Factor handbook » The language » Combinators » Dataflow combinators » Apply combinators

Prev: | tri@ ( x y z quot -- ) |

Next: | both? ( x y quot -- ? ) |

Vocabulary

kernel

Inputs

Outputs

None

Word description

Applies the quotation to u and v, then to w and x, and then to y and z.

Examples

The following two lines are equivalent:

The following two lines are also equivalent:

Definition

kernel

Inputs

u | an object |

v | an object |

w | an object |

x | an object |

y | an object |

z | an object |

quot | a quotation with stack effect ( obj1 obj2 -- ... ) |

Outputs

None

Word description

Applies the quotation to u and v, then to w and x, and then to y and z.

Examples

The following two lines are equivalent:

[ p ] 2tri@
[ [ p ] 2dip p ] 2dip p

The following two lines are also equivalent:

[ p ] 2tri@
[ p ] [ p ] [ p ] 2tri*

Definition