Module Preface_core.EitherSource

Some helpers over Either.t

Sourceval swap : ('a, 'b) Either.t -> ('b, 'a) Either.t

swap x transforms Left x into Right x and Right x into Left x