mirror of
https://github.com/urbit/shrub.git
synced 2024-12-12 18:48:14 +03:00
309805f5e7
Complicated merge of Hoon 151. This commit is a major sequence point.
17 lines
309 B
Plaintext
17 lines
309 B
Plaintext
::
|
|
:::: /hoon/moon/gen
|
|
::
|
|
/? 314
|
|
::
|
|
::::
|
|
!:
|
|
:- %say
|
|
|= $: {now/@da eny/@uvI bec/beak}
|
|
[$~ $~]
|
|
==
|
|
:- %noun
|
|
?> =(1 (met 5 p.bec))
|
|
=+ mon=(mix (lsh 5 1 (end 5 1 eny)) p.bec)
|
|
=+ tic=((hard @p) .^(/a+(scot %p p.bec)/tick+(scot %da now)/(scot %p mon)))
|
|
"moon: {<`@p`mon>}; ticket: {<tic>}"
|