urbit/base/pub/doc/hoon/runes/cn/cnhp.md
2015-04-29 18:48:45 -04:00

651 B

cenhep, %-, %cnhp

Slam, n-arguments

%- is a synthetic rune that that pulls $ from the door p with its sample set to [%cltr q]. %- in the most common case simply slams p with the list of arguments in q. %- is similar to a function call, and is most familiar in its irregular form (p q).

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