MarioAriasC / funKTionale

Functional constructs for Kotlin
915 stars 71 forks source link

Helper constructors for Disjunction and Either #19

Closed jkpl closed 7 years ago

jkpl commented 7 years ago

The constructor allow creating left and right values without having to explicitly specify type parameters. Check the modified test for an example.

jkpl commented 7 years ago

This solution here uses a companion object for the constructor functions. Would the preferred style be outside of the companion object next to the type?

MarioAriasC commented 7 years ago

You need to update this as https://github.com/MarioAriasC/funKTionale/pull/20 changed Either and Disjunction generics

jkpl commented 7 years ago

Updated.