Skip to content

Conversation

@lue-bird
Copy link
Collaborator

@lue-bird lue-bird commented Jun 5, 2023

allJustMap is only Just all unpacked values when all elements are mapped to Just

firstJustMap is a more general function of find suggested in #12 which returns the first unpacked value that maps to Just.

The -Map prefix names should be consistent with filterMap, concatMap, ..., where "filter", "concat", ... are the actions performed after applying the map.

The "firstJust" and "allJust" should be easier to understand than "find" (from what side?) and "traverse"/"sequence"/"combine" (all Ok?, all Just? all non-empty? ...).

Should we add firstOkMap and allOkMap too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant