@tom-sherman/orangutan
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

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)

Package Sidebar

Install

npm i @tom-sherman/orangutan

Weekly Downloads

6

Version

0.0.3

License

MIT

Unpacked Size

66.4 kB

Total Files

28

Last publish

Collaborators

  • tom.sherman