view Main/jungle-main/util/Either.cs @ 35:f2ea780b3e80

fix
author Kazuma Takeda
date Wed, 22 Feb 2017 16:30:19 +0900
parents a79781723862
children
line wrap: on
line source


namespace JungleDB {
	public interface Either<A,B> {
		A a();
		bool isA();
		B b();
		bool isB();
		Either<A, B> fmap (System.Func<B, B> f);
		Either<A, B> bind (System.Func<B, Either<A,B>> f);
	}
}