Mercurial > hg > Database > jungle-sharp
comparison 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 |
comparison
equal
deleted
inserted
replaced
32:07318c10b894 | 33:56de71ae6f7e |
---|---|
1 | 1 |
2 public interface Either<A,B> { | 2 public interface Either<A,B> { |
3 A a(); | 3 A a(); |
4 bool isA(); | 4 bool isA(); |
5 B b(); | 5 B b(); |
6 bool isB(); | 6 bool isB(); |
7 Either<A, B> fmap (System.Func<B, B> f, Either<A, B> e); | |
7 } | 8 } |