Change definition of uncons.
This commit is contained in:
@@ -111,7 +111,7 @@ ternary binary popd
|
||||
third rest second
|
||||
tuck dup swapd
|
||||
unary nullary popd
|
||||
uncons [first] [rest] cleave
|
||||
uncons [first] dupdip rest
|
||||
unit [] cons
|
||||
unquoted [i] dip
|
||||
unstack [[] swaack] dip swoncat swaack pop
|
||||
|
||||
@@ -606,6 +606,7 @@ proc joy(stack: JoyListType, expression: JoyListType, dictionary: JoyMapType): (
|
||||
var term: JoyType
|
||||
|
||||
while not e.isEmpty:
|
||||
#echo print_stack(s) & " . " & print_expression(e)
|
||||
(term, e) = next_term(e)
|
||||
#echo pr_str(term)
|
||||
case term.kind
|
||||
|
||||
Reference in New Issue
Block a user