asSecond<A> method
Transform the object in a union where the object type is the second type the union can take.
Union2<String, int> a = 42.asFirst();
Union3<String, int, double> b = 42.asFirst();
Implementation
Union2<A, T> asSecond<A>() {
return (_a, f, _c, _d, _e, _f, _g, _h, _i) => f(this);
}