Fix fry bug

db4
Slava Pestov 2008-05-05 00:11:37 -05:00
parent 74f17be711
commit 3a69f5e895
2 changed files with 5 additions and 1 deletions

View File

@ -48,3 +48,7 @@ sequences ;
[ { 1 2 3 } ] [
3 1 '[ , [ , + ] map ] call
] unit-test
[ { 1 { 2 { 3 } } } ] [
1 2 3 '[ , [ , [ , 1array ] call 2array ] call 2array ] call
] unit-test

View File

@ -54,7 +54,7 @@ DEFER: (shallow-fry)
[ { , namespaces:, @ } member? ] filter length
\ , <repetition> %
]
[ deep-fry % ] bi
[ fry % ] bi
] [ namespaces:, ] if
] each
] [ ] make deep-fry ;