Skip to content
No description, website, or topics provided.
TypeScript JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
lib
.gitignore
README.md
_config.yml
jest.config.js
package-lock.json
package.json
tsconfig.json
typedoc.json

README.md

Orangutan

o-range-utan

A lazy range and list library for JavaScript. Heavily inspired by Haskell's lists and range syntax.

Requirements

Orangutan is currently distributed as an ES6 module using native iterators and generators. This means your environment must support function* and import/export syntax constructs.

Haskell vs Orangutan

There are many parallels between Orangutan and Haskell's lists/ranges

Ranges

// [1, 3..20]
range(1, 3, 20)

// [1..5]
range(1, undefined, 5)

// [3..]
range(3)
You can’t perform that action at this time.