Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/fumieval/witherable

Filter with effects
https://github.com/fumieval/witherable

Last synced: 14 days ago
JSON representation

Filter with effects

Awesome Lists containing this project

README

        

# witherable

[![Discord](https://img.shields.io/discord/664807830116892674?color=%237095ec&label=Discord&style=plastic)](https://discord.gg/DG93Tgs)

witherable-class defines `Filterable` and `Witherable` class with instances.
witherable provides indexed variants, optic-style generalised withers and extra instances.

Why not just `fmap catMaybes . traverse f`? Because `wither` can be defined to traverse the structure once. Also, its parametrity ensures that filtering works in a sane way. For more details, see also [FilterableとWitherableについて](https://viercc.github.io/blog/posts/2021-10-24-witherable-1.html)

Dependencies:

* base-orphans
* containers
* hashable
* transformers
* unordered-containers
* vector