mirror of
https://github.com/urbit/shrub.git
synced 2025-01-08 14:09:29 +03:00
fixed optional argument parser, usage in |merge
This commit is contained in:
parent
f49894ad66
commit
8e3933a0c3
@ -208,14 +208,10 @@
|
|||||||
(star ;~(pfix ace dp-value))
|
(star ;~(pfix ace dp-value))
|
||||||
%+ cook
|
%+ cook
|
||||||
~(gas by *(map term (unit dojo-source)))
|
~(gas by *(map term (unit dojo-source)))
|
||||||
%+ more
|
%+ more com
|
||||||
;~(plug com ace)
|
|
||||||
;~ plug
|
;~ plug
|
||||||
;~(pfix tis sym)
|
;~(pfix ace tis sym)
|
||||||
;~ pose
|
(punt ;~(pfix ace dp-value))
|
||||||
;~(pfix ace (stag ~ dp-value))
|
|
||||||
(easy ~)
|
|
||||||
==
|
|
||||||
==
|
==
|
||||||
==
|
==
|
||||||
--
|
--
|
||||||
|
@ -11,12 +11,11 @@
|
|||||||
::::
|
::::
|
||||||
!:
|
!:
|
||||||
|= $: [now=@da eny=@uvI bek=beak]
|
|= $: [now=@da eny=@uvI bek=beak]
|
||||||
[arg=[?(sorc [syd=$|(desk beaky) sorc])] opt=(map ,%gem germ)]
|
[arg=[?(sorc [syd=$|(desk beaky) sorc])] gem=?(%auto germ)]
|
||||||
==
|
==
|
||||||
=* our p.bek
|
=* our p.bek
|
||||||
|^ :- %kiln-merge
|
|^ :- %kiln-merge
|
||||||
^- [syd=desk her=ship sud=desk gem=?(germ %auto)]
|
^- [syd=desk her=ship sud=desk gem=?(%auto germ)]
|
||||||
=+ gem=(fall (~(get by opt) %gem) %auto)
|
|
||||||
?- arg
|
?- arg
|
||||||
[@ @ ~] =+(arg [sud ?.(=(our her) her (sein her)) sud gem])
|
[@ @ ~] =+(arg [sud ?.(=(our her) her (sein her)) sud gem])
|
||||||
[^ ~] =+((pars bek.arg) [dez ?.(=(our who) who (sein who)) dez gem])
|
[^ ~] =+((pars bek.arg) [dez ?.(=(our who) who (sein who)) dez gem])
|
||||||
|
Loading…
Reference in New Issue
Block a user