Eagerly evaluated functions for Maps.
Status
Source | Shields |
---|---|
Project | |
Health | |
Repository | |
Activity |
Installation
bower install purescript-maps-eager
Usage
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"]
Tests
To run tests:
pulp test
Documentation
This repository's documentation is hosted on Pursuit.
Linters
To run linters:
nps lint
Formatters
To run formatters:
nps format
Continuous integration
This repository uses GitHub Actions to lint and test each commit. Each commit should be formatted and its corresponding documentation should be updated.
Versioning
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
Changelog
Please read this repository's changelog for details on changes that have been made.
Contributing
Please read this repository's guidelines on contributing for details on the process for submitting pull requests. Moreover, our code of conduct declares our collaboration standards.
Contributors
- Joel Lefkowitz - Initial work
Remarks
Lots of love to the open source community!