Skip to main content

Ahh

A collection of mostly rust-inspired stuff to help make TypeScript a litte easier to work with — if you don’t mind a little verbosity.

Example

Here’s a quick example of how you might use a few of this module’s goodies:

import { I, Some } from "./mod.ts";

const len = 5;
const iter = I.map(I.successors(Some(0), (n) => Some(n + 1)), (n) => n * 2);

for (const n of I.take(iter, len)) {
  console.log(n);
}

Licence

All code in this repository is dual-licenced under either:

at your option. This means you can select the licence you prefer!