Skip to main content
Deno 2 is finally here šŸŽ‰ļø
Learn more

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!