示例#1
0
 public NonEmptyListTC <TReturn> ApplyRight <TReturn>(NonEmptyListTC <TReturn> other)
 {
     return(other);
 }
示例#2
0
 public NonEmptyListTC <TReturn> ComputeWith <TReturn>(Func <T, NonEmptyListTC <TReturn> > f)
 {
     return(NonEmptyListTC.Construct(this.SelectMany(v => f(v))));
 }
示例#3
0
 public NonEmptyListTC <T> ApplyLeft <TReturn>(NonEmptyListTC <TReturn> other)
 {
     return(this);
 }
示例#4
0
 public NonEmptyListTC <TReturn> Apply <TReturn>(NonEmptyListTC <Func <T, TReturn> > f)
 {
     return(NonEmptyListTC.Construct(f.SelectMany(fElem => this.FMap(fElem))));
 }
示例#5
0
 public override NonEmptyListTC <TReturn> FMap <TReturn>(Func <T, TReturn> f)
 {
     return(NonEmptyListTC.Singleton(f(this.Value)));
 }
示例#6
0
 public override NonEmptyListTC <TReturn> FMap <TReturn>(Func <T, TReturn> f)
 {
     return(NonEmptyListTC.ConsNEL(f(this.Head), this.Tail.FMap(f)));
 }
示例#7
0
 public ConsNELTC(T head, NonEmptyListTC <T> tail)
 {
     this.Head = head;
     this.Tail = tail;
 }