An open API service indexing awesome lists of open source software.

https://github.com/gnlow/iteruyo

Functional iterator for TypeScript
https://github.com/gnlow/iteruyo

fp iterator typescript

Last synced: 6 months ago
JSON representation

Functional iterator for TypeScript

Awesome Lists containing this project

README

          

# iteruyo

```ts
import { $ } from "https://deno.land/x/iteruyo/mod.ts"

$([1, 2, 3, 4, 5])
.filter(x => x % 2 === 0)
.map(x => x * 2)
.forEach(console.log) // 4 8
```
```ts
$([1, 2, 3, 4, 5])
.multiFold(function*(o, i) {
yield o + i
return o + i
})
```