main
1namespace jive
2{
3 public class ChainedMapper<Left, Middle, Right> : Mapper<Left, Right>
4 {
5 readonly Mapper<Left, Middle> left;
6 readonly Mapper<Middle, Right> right;
7
8 public ChainedMapper(Mapper<Left, Middle> left, Mapper<Middle, Right> right)
9 {
10 this.left = left;
11 this.right = right;
12 }
13
14 public Right map_from(Left item)
15 {
16 return right.map_from(left.map_from(item));
17 }
18 }
19}