Merge pull request #1177 from urbit/fix-ho-mold-bunts

fix higher-order mold parameter-bunts
This commit is contained in:
Jared Tobin 2019-05-27 13:06:48 +08:00 committed by GitHub
commit 32d62baa52
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -321,7 +321,7 @@
:: input if it fits or a default value if it doesn't.
::
:: examples: * @ud ,[p=time q=?(%a %b)]
_|~(* +<)
$~(* $-(* *))
::
+* pair [head tail]
:: dual tuple
@ -16731,21 +16731,19 @@
%+ cook
|= [b=term c=(list term) e=spec]
^- [term hoon]
:* b
:- b
:+ %brtr
:- %bscl
=- ?>(?=(^ -) -)
:: for each .term in .c, produce $=(term $~(* $-(* *)))
:: ie {term}=mold
::
%+ turn c
|= =term
^- spec
:+ %bsts
term
[%bshp [%base %noun] [%base %noun]]
:- %ktcl
:+ %made
[b c]
e
==
=/ tar [%base %noun]
[%bsts term [%bssg tar [%bshp tar tar]]]
[%ktcl [%made [b c] e]]
;~ pfix (jest '+*')
;~ plug
;~(pfix gap sym)