MarioAriasC / funKTionale

Functional constructs for Kotlin
915 stars 71 forks source link

Functions for validating disjunctions #17

Closed jkpl closed 7 years ago

jkpl commented 7 years ago

These functions accept disjunction values and a function for processing the right-side results of those disjunctions. If any of the given disjunctions is a Disjunction.Left, the result will be a Disjunction.Left containing a list of all the left-side values. If all of the given disjunctions are of type Disjunction.Right, then the result will a Disjunction.Right containing the result of the given function.