Fixed named update and a bug in accumulating
* goof.scm: Removed positional updates and fixed named updates * iterators.scm: Fixed bug in accumulating where only lists were supported.
This commit is contained in:
parent
b3efccb4aa
commit
f2496604d5
3 changed files with 55 additions and 61 deletions
|
@ -268,7 +268,7 @@
|
|||
(accumulating (kons final i) ((var cursor) x) n . rest))
|
||||
((accumulating (kons final init) ((var cursor) (expr (if check))) n . rest)
|
||||
(n ((tmp-kons kons))
|
||||
((cursor '() (if check (tmp-kons expr cursor) cursor)))
|
||||
((cursor init (if check (tmp-kons expr cursor) cursor)))
|
||||
()
|
||||
()
|
||||
()
|
||||
|
@ -276,7 +276,7 @@
|
|||
. rest))
|
||||
((accumulating (kons final init) ((var cursor) (expr)) n . rest)
|
||||
(n ((tmp-kons kons))
|
||||
((cursor '() (tmp-kons expr cursor)))
|
||||
((cursor init (tmp-kons expr cursor)))
|
||||
()
|
||||
()
|
||||
()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue