Array search functions.
Source | Shields |
---|---|
Project | |
Health | |
Repository | |
Activity |
bower install purescript-array-search
> some (\x -> x > 1) [ 1, 2, 3, 4 ]
true
> some (\x -> x > 5) [ 1, 2, 3, 4 ]
false
> every (\x -> x > 0) [ 1, 2, 3, 4 ]
true
> every (\x -> x > 1) [ 1, 2, 3, 4 ]
false
> findEachIndex (\x -> x > 1) [ 1, 2, 3, 4 ]
[1, 2, 3]
> smallest [ 1, 2, 3, 4 ]
1
> largest [ 1, 2, 3, 4 ]
4
> smallestWhere (\x -> x > 1) [ 1, 2, 3, 4 ]
2
> largestWhere (\x -> x > 1) [ 1, 2, 3, 4 ]
4
> smallestAbove 1 [ 1, 2, 3, 4 ]
2
> largestBelow 2 [ 1, 2, 3, 4 ]
1
purescript-arrays
providesfind
,findLast
,findIndex
andfindLastIndex
findEach
is synonymous withfilter
To run tests:
pulp test
This repository's documentation is hosted on Pursuit.
To run linters:
nps lint
To run formatters:
nps format
This repository uses GitHub Actions to lint and test each commit. Each commit should be formatted and its corresponding documentation should be updated.
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
Please read this repository's changelog for details on changes that have been made.
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.
- Joel Lefkowitz - Initial work
Lots of love to the open source community!