Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
keithalewis
· 2y ago · 0 comments
This seems to make the mistake of identifying a vector with a stream.
Comments
[–]
rebanevapustus
2y ago
In this implementation streams are not vectors nor lists. They are ordered hash maps.
[–]
keithalewis
OP
2y ago
Just pointing out what the theoretical documentation says. A stream should have operations for empty, current, and next. You don't want implementation details leaking into the abstract model.