urbit/pub/docs/dev/hoon/runes/zp/zpsm.md
Galen Wolfe-Pauly bb495844be doc -> docs
2015-10-20 10:51:45 -07:00

625 B

zapsem, !;, %zpsm

[type noun] pair

!; is a natural rune that produces the product of twig q as a [type noun] pair, with twig p serving as an example of the type.

Produces

Twig: [%zpsm p=twig q=twig]

Sample

p and q are twigs.

Tall form

!;  p
    q

Wide form

!;(p q)

Irregular form

None

Examples

~zod/try=> !;(*type 1)
[[%atom p=%ud] 1]
~zod/try=> !;(*type [1 2])
[[%cell p=[%atom p=%ud] q=[%atom p=%ud]] 1 2]
~zod/try=> !;([%atom ''] ~doznec)
[[%atom 'p'] ~doznec]