Don't need with-locals anymore, removing
parent
89e6869da1
commit
f88a02b5c1
|
@ -43,10 +43,10 @@ PRIVATE>
|
||||||
: rest-lambda ( body vars -- quot )
|
: rest-lambda ( body vars -- quot )
|
||||||
"&rest" swap [ remove ] [ index ] 2bi
|
"&rest" swap [ remove ] [ index ] 2bi
|
||||||
[ localize-lambda <lambda> ] dip
|
[ localize-lambda <lambda> ] dip
|
||||||
[ , cut swap [ % , ] bake , with-locals compose ] bake ;
|
[ , cut swap [ % , ] bake , compose ] bake ;
|
||||||
|
|
||||||
: normal-lambda ( body vars -- quot )
|
: normal-lambda ( body vars -- quot )
|
||||||
localize-lambda <lambda> [ , with-locals compose ] bake ;
|
localize-lambda <lambda> [ , compose ] bake ;
|
||||||
|
|
||||||
: convert-lambda ( s-exp -- quot )
|
: convert-lambda ( s-exp -- quot )
|
||||||
split-lambda dup "&rest" swap member? [ rest-lambda ] [ normal-lambda ] if ;
|
split-lambda dup "&rest" swap member? [ rest-lambda ] [ normal-lambda ] if ;
|
||||||
|
|
Loading…
Reference in New Issue