Abstract
Applies appropriate function and returns result from the function.
Processing function for Some.
Processing function for None.
some(1).caseOf(x => x + 1, () => 0) // 2none.caseOf(x => x + 1, () => 0) // 0
Applies appropriate function and returns result from the function.