3bi ( x y z p q -- )

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

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

Prev: | 2bi ( x y p q -- ) |

Next: | tri ( x p q r -- ) |

Vocabulary

kernel

Inputs

Outputs

None

Word description

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

Examples

If [ p ] and [ q ] 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 -- ... ) |

Outputs

None

Word description

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

Examples

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

[ p ] [ q ] 3bi
3dup p q

In general, the following two lines are equivalent:

[ p ] [ q ] 3bi
[ p ] 3keep q

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 (2203, heads/master-424edf64aa, Mar 8 2023 13:48:50)