Mercurial > hg > Database > jungle-sharp
comparison Main/jungle-main/util/Either.cs @ 35:f2ea780b3e80
fix
author | Kazuma Takeda |
---|---|
date | Wed, 22 Feb 2017 16:30:19 +0900 |
parents | a79781723862 |
children |
comparison
equal
deleted
inserted
replaced
34:a79781723862 | 35:f2ea780b3e80 |
---|---|
1 | 1 |
2 public interface Either<A,B> { | 2 namespace JungleDB { |
3 A a(); | 3 public interface Either<A,B> { |
4 bool isA(); | 4 A a(); |
5 B b(); | 5 bool isA(); |
6 bool isB(); | 6 B b(); |
7 Either<A, B> fmap (System.Func<B, B> f); | 7 bool isB(); |
8 Either<A, B> bind (System.Func<B, Either<A,B>> f); | 8 Either<A, B> fmap (System.Func<B, B> f); |
9 Either<A, B> bind (System.Func<B, Either<A,B>> f); | |
10 } | |
9 } | 11 } |