urbit/gen/womb/shop.hoon

13 lines
375 B
Plaintext
Raw Normal View History

2016-04-30 00:40:44 +03:00
::
:::: /hoon/shop/womb/gen
::
/? 310
:- %say
|= $: {now/@da eny/@uvI bec/beak}
arg/$@($~ {typ/?($stars $planets $galaxies) $~})
who/(unit @p)
==
?~ arg $(arg ~[typ=%planets])
=- [%ships .^((list ship) %gx /[him]/hood/[cas]/womb/shop/[typ.arg]/[nth])]
[him=(scot %p ?^(who u.who p.bec)) cas=(scot %da now) nth=(scot %ud %.(10 ~(rad og eny)))]