MarioAriasC / funKTionale

Functional constructs for Kotlin
913 stars 71 forks source link

Helper constructors for Disjunction and Either #19

Closed jpallari closed 7 years ago

jpallari 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.

jpallari 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

jpallari commented 7 years ago

Updated.