shrub/pub/doc/hoon/runes/cn/cnhp.md
2015-06-19 14:22:15 -07:00

691 B

cenhep, %-, %cnhp

Slam, n-arguments

Slam, 1 (or n) argument(s)

%- is a synthetic rune that that pulls $ from the door p with its sample set to [%cltr q]. %- in both its tall and wide forms is like a function call with one argument. However, %-is most commonly used in its irregular form, where p and q are enclosed within () where q is a list of n arguments.

Produces

Twig: [%cnhp p=twig q=tusk]

Sample

p is a twig, most commonly a gate q is a tusk, a list of twigs

Tall form

%-  p
    q
==

Wide form

%-(p q)

Irregular form

(p q)

Examples