MapWith: mapWith: like fmap, but with additional parameters (isFirst, isLast, etc).
fmap over Traversables (including lists), but pass additional parameters to the map function, such as isFirst, isLast, prevElt, nextElt, index from start or end, custom params. For examples see https://github.com/davjam/MapWith/blob/master/doc/examples.hs
[Skip to Readme]
Downloads
- MapWith-0.2.0.0.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
Versions [RSS] | 0.1.0.0, 0.2.0.0 |
---|---|
Change log | ChangeLog.md |
Dependencies | base (>=4.9.1 && <4.15) [details] |
Tested with | ghc ==8.0.2, ghc ==8.4.3, ghc ==8.8.3, ghc ==8.10.1 |
License | BSD-3-Clause |
Copyright | (c) David James, 2020. |
Author | David James |
Maintainer | dj112358@outlook.com |
Category | Combinators |
Home page | https://github.com/davjam/MapWith#readme |
Source repo | head: git clone https://github.com/davjam/MapWith.git |
Uploaded | by davtjames at 2020-08-25T12:30:13Z |
Distributions | |
Downloads | 547 total (11 in the last 30 days) |
Rating | (no votes yet) [estimated by Bayesian average] |
Your Rating | |
Status | Docs available [build log] Last success reported on 2020-08-25 [all 1 reports] |