Vocabulary

kernel

Inputs and outputs

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 and outputs

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 -- ... ) |

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