shrub/pub/doc/hoon/runes/cn/cnhp.md

40 lines
691 B
Markdown
Raw Normal View History

2015-02-18 06:03:21 +03:00
[cenhep, `%-`, %cnhp](#cnhp)
============================
Slam, n-arguments
2015-06-20 00:22:15 +03:00
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.
2015-02-18 06:03:21 +03:00
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
--------