3tri ( x y z p q r -- )

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

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

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

Next: | cleave ( x seq -- ) |

Vocabulary

kernel

Inputs

Outputs

None

Word description

Applies p to the three input values, then applies q to the three input values, and finally applies r to the three input values.

Examples

If [ p ], [ q ] and [ r ] have stack effect ( x y z -- ), then the following two lines are equivalent:

In general, the following two lines are equivalent:

Definition

kernel

Inputs

x | an object |

y | an object |

z | an object |

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

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

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

Outputs

None

Word description

Applies p to the three input values, then applies q to the three input values, and finally applies r to the three input values.

Examples

If [ p ], [ q ] and [ r ] have stack effect ( x y z -- ), then the following two lines are equivalent:

[ p ] [ q ] [ r ] 3tri
3dup p 3dup q r

In general, the following two lines are equivalent:

[ p ] [ q ] [ r ] 3tri
[ p ] 3keep [ q ] 3keep r

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.99 x86.64 (2173, heads/master-f3ee5c5979, Sep 18 2022 13:17:51)