/** * Classic Applicative. * * @tsplus static Either.Aspects ap * @tsplus pipeable Either ap */ export function ap(that: Either) { return (self: Either B>): Either => self.isLeft() ? self : that.isLeft() ? that : Either.right(self.right(that.right)) }