sequency
sequency copied to clipboard
⚡️ Type-safe functional sequences for processing iterable data
Currently, it is possible to sort using the key of an item, but only through the `Comparator` and `ComparatorFactory` interfaces, for example: https://github.com/winterbe/sequency/blob/7be941df1dce7c5ad50df60c1ddec72b46a54b54/test/sorted.test.ts#L67 https://github.com/winterbe/sequency/blob/7be941df1dce7c5ad50df60c1ddec72b46a54b54/test/sorted.test.ts#L89 https://github.com/winterbe/sequency/blob/7be941df1dce7c5ad50df60c1ddec72b46a54b54/test/sorted.test.ts#L108 https://github.com/winterbe/sequency/blob/7be941df1dce7c5ad50df60c1ddec72b46a54b54/test/sorted.test.ts#L135 The goal of this...
Right now, it’s impossible to use sequency from [actual ES6 modules](https://hacks.mozilla.org/2015/08/es6-in-depth-modules/), which means that sites which use them¹, the amount of which will only keep rising now that [all major...
This PR adds support for use of async functions via the dedicated AsyncSequence, updates the project to support ESM and use up-to-date dependencies and adds/updates/fixes some operators. Added: - ESM...
This PR adds two new (terminal) methods: * `isEmpty` that checks whether the sequence contains absolutely no element * `isNotEmpty` that checks whether the sequence contains at least one element...
`flatMap` is really handy, but the fact it **has** to return a `Sequence` make it a bit cumbersome to use. In this PR I introduce `flatMapM` which is a more...
Add two functions `asKeysSequence` and `asValuesSequence` that act similarly to `asSequence` but for objects. * `asKeysSequence` helps with easily creating a `Sequence` for an object's keys, a `Map`'s keys or...