MapWith

mapWith: like fmap, but with additional arguments (isFirst, isLast, etc).

https://github.com/davjam/MapWith#readme

Version on this page:0.1.0.0@rev:1
LTS Haskell 18.28:0.2.0.0
Stackage Nightly 2021-06-14:0.2.0.0
Latest on Hackage:0.2.0.0

See all snapshots MapWith appears in

BSD-3-Clause licensed by David James
Maintained by [email protected]
This version can be pinned in stack with:MapWith-0.1.0.0@sha256:7ae1f42261f0f783f62bb76df2534cb02759788fdb987310783f3401fbc377fe,3139

Module documentation for 0.1.0.0

Depends on 1 package(full list with versions):

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

Changes

Revision history for MapWith

0.1.0.0 – 2020-06-24

  • First release