Skip to content
This repository has been archived by the owner on Jun 4, 2021. It is now read-only.

List.find : (a -> Boolean) -> [a] -> Optional a #77

Open
rjdestigter opened this issue May 9, 2021 · 0 comments
Open

List.find : (a -> Boolean) -> [a] -> Optional a #77

rjdestigter opened this issue May 9, 2021 · 0 comments

Comments

@rjdestigter
Copy link

Adds List.find which will return the first element in the list for which the given predicate returns true

Code review

The changes summarized below are available for you to review, using the following command:

pull-request.load https://github.com/unisonweb/base:.trunk https://github.com/rjdestigter/unisoncode:.prs._List_find

Added definitions:

 List.find                       : (a ->{𝕖} Boolean) -> [a] ->{𝕖} Optional a
 List.find.doc                   : Doc
 List.find.tests.itShortCircuits : [Result] (+1 metadata)
 List.find.tests.none            : [Result] (+1 metadata)
 List.find.tests.some            : [Result] (+1 metadata)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant