mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-15 01:52:42 +03:00
Merge pull request #1150 from urbit/philip/tis-cen
Add ;< for monadic operations
This commit is contained in:
commit
e7ac77281e
@ -6694,6 +6694,7 @@
|
||||
{$mcts p/marl:hoot} :: ;= list templating
|
||||
{$mccl p/hoon q/(list hoon)} :: ;: binary to nary
|
||||
{$mcnt p/hoon} :: ;/ [%$ [%$ p ~] ~]
|
||||
{$mcgl p/spec q/hoon r/hoon s/hoon} :: ;< bind
|
||||
{$mcsg p/hoon q/(list hoon)} :: ;~ kleisli arrow
|
||||
{$mcmc p/hoon q/hoon} :: ;; normalize
|
||||
:: :::::: compositions
|
||||
@ -8771,6 +8772,16 @@
|
||||
==
|
||||
::
|
||||
{$mcnt *} =+(zoy=[%rock %ta %$] [%clsg [zoy [%clsg [zoy p.gen] ~]] ~])
|
||||
{$mcgl *}
|
||||
:^ %cnls
|
||||
:+ %cnhp
|
||||
q.gen
|
||||
[%ktcl p.gen]
|
||||
r.gen
|
||||
:+ %brts
|
||||
p.gen
|
||||
s.gen
|
||||
::
|
||||
{$mcsg *} :: ;~
|
||||
|- ^- hoon
|
||||
?- q.gen
|
||||
@ -14037,6 +14048,7 @@
|
||||
[%mcts *] %ast-node-mcts
|
||||
[%mccl *] (rune ';:' `'==' `[':(' spc ')'] (hoons [p q]:x))
|
||||
[%mcnt *] (rune ';/' ~ ~ (hoons ~[p]:x))
|
||||
[%mcgl *] (rune ';<' ~ ~ (spec p.x) (hoons ~[q r s]:x))
|
||||
[%mcsg *] (rune ';~' `'==' ~ (hoons [p q]:x))
|
||||
[%mcmc *] (rune ';;' ~ ~ (hoons ~[p q]:x))
|
||||
[%tsbr *] (rune ';;' ~ ~ ~[(spec p.x) (hn q.x)])
|
||||
@ -16645,6 +16657,7 @@
|
||||
^. stet ^. limo
|
||||
:~ [':' (rune col %mccl expi)]
|
||||
['/' (rune net %mcnt expa)]
|
||||
['<' (rune gal %mcgl exp1)]
|
||||
['~' (rune sig %mcsg expi)]
|
||||
[';' (rune mic %mcmc expb)]
|
||||
==
|
||||
@ -16915,6 +16928,7 @@
|
||||
++ expx |.(;~(gunk loaf wisp)) :: hoon and core tail
|
||||
++ expy |.(;~(gunk ropa loaf loaf)) :: wings and two hoons
|
||||
++ expz |.(loaf(bug &)) :: hoon with tracing
|
||||
++ exp1 |.(;~(gunk loan loaf loaf loaf)) :: spec and three hoons
|
||||
:: spec contents
|
||||
::
|
||||
++ exqa |.(loan) :: one hoon
|
||||
|
Loading…
Reference in New Issue
Block a user