view Main/jungle-main/util/Either.cs @ 41:bd44baa491a9 default tip

add TestJungleCore.cs
author Kazuma Takeda
date Thu, 23 Feb 2017 17:19:55 +0900
parents f2ea780b3e80
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);
	}
}