mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-16 19:22:22 +03:00
Merge pull request #1177 from urbit/fix-ho-mold-bunts
fix higher-order mold parameter-bunts
This commit is contained in:
commit
32d62baa52
@ -321,7 +321,7 @@
|
|||||||
:: input if it fits or a default value if it doesn't.
|
:: input if it fits or a default value if it doesn't.
|
||||||
::
|
::
|
||||||
:: examples: * @ud ,[p=time q=?(%a %b)]
|
:: examples: * @ud ,[p=time q=?(%a %b)]
|
||||||
_|~(* +<)
|
$~(* $-(* *))
|
||||||
::
|
::
|
||||||
+* pair [head tail]
|
+* pair [head tail]
|
||||||
:: dual tuple
|
:: dual tuple
|
||||||
@ -16731,21 +16731,19 @@
|
|||||||
%+ cook
|
%+ cook
|
||||||
|= [b=term c=(list term) e=spec]
|
|= [b=term c=(list term) e=spec]
|
||||||
^- [term hoon]
|
^- [term hoon]
|
||||||
:* b
|
:- b
|
||||||
:+ %brtr
|
:+ %brtr
|
||||||
:- %bscl
|
:- %bscl
|
||||||
=- ?>(?=(^ -) -)
|
=- ?>(?=(^ -) -)
|
||||||
%+ turn c
|
:: for each .term in .c, produce $=(term $~(* $-(* *)))
|
||||||
|= =term
|
:: ie {term}=mold
|
||||||
^- spec
|
::
|
||||||
:+ %bsts
|
%+ turn c
|
||||||
term
|
|= =term
|
||||||
[%bshp [%base %noun] [%base %noun]]
|
^- spec
|
||||||
:- %ktcl
|
=/ tar [%base %noun]
|
||||||
:+ %made
|
[%bsts term [%bssg tar [%bshp tar tar]]]
|
||||||
[b c]
|
[%ktcl [%made [b c] e]]
|
||||||
e
|
|
||||||
==
|
|
||||||
;~ pfix (jest '+*')
|
;~ pfix (jest '+*')
|
||||||
;~ plug
|
;~ plug
|
||||||
;~(pfix gap sym)
|
;~(pfix gap sym)
|
||||||
|
Loading…
Reference in New Issue
Block a user