OSDN Git Service

95dbe5f1aa04756cbbfe7be6cc9c7d129149524c
[joypy/Thun.git] / implementations / Prolog / docs / reference / app1.md
1 --------------------
2
3 ## app1
4
5 "apply one"
6
7 (Combinator)
8
9 Given a quoted program on TOS and anything as the second stack item run
10 the program without disturbing the stack and replace the two args with
11 the first result of the program.
12
13              ... x [Q] app1
14     ---------------------------------
15        ... [x ...] [Q] infra first
16
17 ### Definition
18
19     nullary popd
20
21 ### Discussion
22
23 Just a specialization of `nullary` really.  Its parallelizable cousins
24 are more useful.
25
26