Eagerly evaluated functions for Maps.
spago install maps-eager
Documentation and more detailed examples are hosted on Pursuit.
Given a Map
:
map :: Map String Int
map = fromFoldable [ Tuple "a" 1 , Tuple "b" 2 , Tuple "c" 3]
Often we want to iterate over the keys and values. This package provides functions that return the keys and values in an Array
.
> keys map
[ "a", "b", "c" ]
> values map
[ 1, 2, 3 ]
Also given a value you can search for matching keys:
reverseLookup 3
> Just "c"
reverseLookupAll 3
> ["c"]
To install dependencies:
yarn install
yarn spago install
To run tests:
yarn spago test
To generate the documentation locally:
yarn spago docs
To run linters:
yarn lint
To run formatters:
yarn format
Please read this repository's Code of Conduct which outlines our collaboration standards and the Changelog for details on breaking changes that have been made.
This repository adheres to semantic versioning standards. For more information on semantic versioning visit SemVer.
Bump2version is used to version and tag changes. For example:
bump2version patch
- Joel Lefkowitz - Initial work
Lots of love to the open source community!