Mercurial > hg > Database > jungle-sharp
view Main/jungle-main/util/Either.cs @ 34:a79781723862
Add bind function to Either.cs
Rewrite use bind.
author | Kazuma Takeda |
---|---|
date | Tue, 07 Feb 2017 20:50:50 +0900 |
parents | 56de71ae6f7e |
children | f2ea780b3e80 |
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> bind (System.Func<B, Either<A,B>> f); }