Thun/docs/reference/app2.md

929 B

Combinator Like [app1](#app1) with two items. ... y x [Q] . app2
## app2 Combinator Like app1 with two items. ... y x [Q] . app2
   ... [y ...] [Q] . infra first
       [x ...] [Q]   infra first

Definition

[grba] [swap] [grba] [swap]

Discussion

Unlike app1, which is essentially an alias for unary, this function is not the same as binary. Instead of running one program using exactly two items from the stack and pushing one result (as binary does) this function takes two items from the stack and runs the program twice, separately for each of the items, then puts both results onto the stack.

This is not currently implemented as parallel processes but it can (and should) be done.

app1 app3 appN unary