urbit/gen/hood/merge.hoon

36 lines
949 B
Plaintext
Raw Normal View History

::
2015-09-12 00:15:25 +03:00
:::: /hoon/merge/hood/gen
::
/? 314
!:
|%
2016-02-11 22:09:40 +03:00
++ beaky {knot knot knot $~}
++ sorc ?({bek/beaky $~} {her/@p sud/@tas $~})
--
::
::::
!:
:- %say
|= $: {now/@da eny/@uvI bek/beak}
2016-02-11 22:09:40 +03:00
{arg/{?(sorc {syd/$@(desk beaky) sorc})} cas/case gem/?($auto germ)}
==
2016-02-11 22:09:40 +03:00
=. cas ?:(=(*case cas) da+now cas)
=* our p.bek
|^ :- %kiln-merge
^- {syd/desk her/ship sud/desk cas/case gem/?($auto germ)}
?- arg
{@ @ $~} =+(arg [sud ?.(=(our her) her (sein her)) sud cas gem])
{^ $~} =+ (pars bek.arg)
2016-02-11 22:09:40 +03:00
[dez ?.(=(our who) who (sein who)) dez caz gem]
{* @ @ $~} [(pars-src syd.arg) =+(arg [her sud cas gem])]
2016-02-11 22:09:40 +03:00
{* ^ $~} [(pars-src syd.arg) =+((pars bek.arg) [who dez caz gem])]
==
2016-02-11 22:09:40 +03:00
++ pars |=(a/beaky `{{who/ship dez/desk caz/case} *}`(need (tome a)))
++ pars-src
|= syd/$@(desk beaky)
?@ syd syd
=+ (pars syd)
~| [%into-foreign who `path`syd]
?>(=(our who) dez)
--