of<A, B> function
Wraps the given value in a Right, indicating the presence of a value of type B.
Example usage:
final either = of<int, String>('Hello'); // This will be Right('Hello')
@category lift
Implementation
Either<A, B> of<A, B>(B value) {
return Right<A, B>(value);
}