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

636 B

wuthaz, %wthz

[Short description]

wuthaz, [%wthz p=wing q=tine] is a synthetic hoon that selects a case in q for the actual type of p.

Produces

[Twig or tile]

Sample

[p is a * q is a *]

Tall form

Kingside:

?-  p
  p.i.q      q.i.q
  p.i.t.q    q.i.t.q
  p.i.t.t.q  q.i.t.t.q
==

Queenside:

?-    p
    p.i.q      
  q.i.q
    p.i.t.q    
  q.i.t.q
    p.i.t.t.q  
  q.i.t.t.q
==

Wide form

?-(p p.i.q q.i.q, p.i.t.q q.i.t.q, p.i.t.t.q q.i.t.t.q)

Irregular form

None

Examples