Created simple functional pattern matching construct.

Please consider this contribution.
return `Case<A, B>` here?