https://github.com/solarliner/purescript-iterator
Lazy iterator structures implemented on top of JavaScript generator functions.
https://github.com/solarliner/purescript-iterator
Last synced: 5 months ago
JSON representation
Lazy iterator structures implemented on top of JavaScript generator functions.
- Host: GitHub
- URL: https://github.com/solarliner/purescript-iterator
- Owner: SolarLiner
- License: mit
- Created: 2020-04-05T13:27:12.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-05T13:42:07.000Z (about 6 years ago)
- Last Synced: 2025-04-06T08:16:58.849Z (about 1 year ago)
- Language: PureScript
- Size: 71.3 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# `purescript-iterator`
Iterators are lazy, generic structures that are computed on-demand rather than read from memory. They allow for truly infinite sequences without memory overhead; instead the values are calculated as they're accessed, increasing the computation overhead instead.
The iterators in this package are implemented in JavaScript with generators, which , unlike lazy lists, do not use recursion and do not suffer from call stack exhaustion.