shrub/gen/solid.hoon

41 lines
857 B
Plaintext
Raw Normal View History

2015-06-18 04:08:47 +03:00
::
2015-12-21 00:16:39 +03:00
:::: /hoon+solid+gen
2015-06-18 04:08:47 +03:00
::
/? 314
::
::::
!:
2015-09-12 03:24:51 +03:00
:- %say
2015-12-20 23:50:45 +03:00
|= $: {now/@da eny/@uvI bec/beak}
2015-12-10 12:17:19 +03:00
{$~ $~}
2015-06-18 04:08:47 +03:00
==
:- %noun
2015-11-11 01:40:52 +03:00
=+ top=`path`/(scot %p p.bec)/[q.bec]/(scot %da now)/arvo
2015-06-18 04:08:47 +03:00
=+ pax=`path`(weld top `path`[%hoon ~])
~& %solid-start
=+ gen=(reck pax)
~& %solid-parsed
=+ ken=q:(~(mint ut %noun) %noun gen)
~& %solid-compiled
:- ken
=+ all=.*(0 ken)
2015-12-20 23:50:45 +03:00
=+ ^= vay ^- (list {p/@tas q/@tas})
2015-06-18 04:08:47 +03:00
:~ [%$ %zuse]
[%g %gall]
[%f %ford]
[%a %ames]
[%b %behn]
2015-06-18 04:08:47 +03:00
[%c %clay]
[%d %dill]
[%e %eyre]
==
|- ^+ all
?~ vay all
=+ pax=(weld top `path`[q.i.vay ~])
2015-12-10 12:17:19 +03:00
=+ txt=((hard @) .^(%cx (weld pax `path`[%hoon ~])))
2015-06-18 04:08:47 +03:00
=+ sam=[now `ovum`[[%gold ~] [%veer p.i.vay pax txt]]]
~& [%solid-veer i.vay]
=+ gat=.*(all .*(all [0 42]))
=+ nex=+:.*([-.gat [sam +>.gat]] -.gat)
$(vay t.vay, all nex)