EitherBuilder 
    The builder for the entire either construct. This is different from a single branch.
Functions
Link copied to clipboard
                  Add a branch builder to this either builder
Link copied to clipboard
                  Add a branch to this builder. The branch is first initialized through the branchInit argument.
Link copied to clipboard
                  Build this either expectation
Link copied to clipboard
                  infix inline fun <T> EitherBuilder<T>.or(branchInit: EitherBranchBuilder<T>.() -> Unit): EitherBuilder<T>
Adds a branch to the either construct. or can be used multiple times to get more than two branches, like so: