mirror of
https://github.com/urbit/shrub.git
synced 2024-12-03 05:43:18 +03:00
Merge commit '9f82c' into relearning
This commit is contained in:
commit
a71e7120bc
@ -959,7 +959,7 @@
|
||||
::
|
||||
++ glyph
|
||||
|= idx/@
|
||||
=< cha.ole
|
||||
=< cha
|
||||
%+ reel glyphs
|
||||
|= {all/tape ole/{cha/char num/@}}
|
||||
=+ new=(snag (mod idx (lent all)) all)
|
||||
|
@ -125,7 +125,7 @@
|
||||
++ gas
|
||||
|= b/(list {k/key n/val})
|
||||
^+ a
|
||||
q:(roll b |=({{k/key n/val} q/_a} (put(a q) k n)))
|
||||
(roll b |=({{k/key n/val} q/_a} (put(a q) k n)))
|
||||
::
|
||||
++ tap
|
||||
^- (list {k/key n/val})
|
||||
|
@ -380,7 +380,7 @@
|
||||
++ reel :: right fold
|
||||
~/ %reel
|
||||
|* {a/(list) b/_|=({* *} +<+)}
|
||||
|- ^+ +<+.b
|
||||
|- ^+ ,.+<+.b
|
||||
?~ a
|
||||
+<+.b
|
||||
(b i.a $(a t.a))
|
||||
@ -388,7 +388,7 @@
|
||||
++ roll :: left fold
|
||||
~/ %roll
|
||||
|* {a/(list) b/_|=({* *} +<+)}
|
||||
|- ^+ +<+.b
|
||||
|- ^+ ,.+<+.b
|
||||
?~ a
|
||||
+<+.b
|
||||
$(a t.a, b b(+<+ (b i.a +<+.b)))
|
||||
@ -8450,7 +8450,7 @@
|
||||
=- [a (welp - ?~(c d [[[%rock %tas p.c] q.c] d]))]
|
||||
=- (~(tap by -))
|
||||
%. |=(e/(list tank) [%knit ~(ram re %rose [" " `~] e)])
|
||||
=< ~(run by f:(reel b .))
|
||||
=< ~(run by (reel b .))
|
||||
|= {e/{p/term q/term} f/(jar twig tank)}
|
||||
(~(add ja f) [%rock %tas p.e] [%leaf (trip q.e)])
|
||||
;~ plug
|
||||
|
Loading…
Reference in New Issue
Block a user