view Main/jungle-main/util/Either.cs @ 33:56de71ae6f7e

Implementation of fmap.
author Kazuma Takeda
date Sat, 28 Jan 2017 19:12:18 +0900
parents 1f99e150f336
children a79781723862
line wrap: on
line source


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> e);
}