Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Comment
by
msoad
· 12y ago · 0 comments
Then what happens to operations that access the collection? like third argument in JavaScript's native forEach?
Comments
[–]
acjohnson55
12y ago
That's what a zipper [1] is good for. It gives you access to the rest of a collection relative to the current position.
[1]
http://en.wikipedia.org/wiki/Zipper_%28data_structure%29
[–]
aeflash
12y ago
It's not supported. But if you're doing things right, you shouldn't need it.
Better HN