2tri* ( u v w x y z p q r -- )

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

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

Prev: | tri* ( x y z p q r -- ) |

Next: | spread ( objs... seq -- ) |

Vocabulary

kernel

Inputs

Outputs

None

Word description

Applies p to u and v, then applies q to w and x, and finally applies r to y and z.

Examples

The following two lines are equivalent:

Definition

kernel

Inputs

u | an object |

v | an object |

w | an object |

x | an object |

y | an object |

z | an object |

p | a quotation with stack effect ( u v -- ... ) |

q | a quotation with stack effect ( w x -- ... ) |

r | a quotation with stack effect ( y z -- ... ) |

Outputs

None

Word description

Applies p to u and v, then applies q to w and x, and finally applies r to y and z.

Examples

The following two lines are equivalent:

[ p ] [ q ] [ r ] 2tri*
[ [ p ] 2dip q ] 2dip r

Definition