public override void Given()
 {
     nel1 = 1.cons(2.cons(Nil.apply()));
     nel2 = 3.cons(4.cons(Nil.apply()));
 }
 public override void Because()
 {
     joined = nel2.Join(nel1);
 }
 public override void Given()
 {
     nel1 = 1.cons(2.cons(Nil.apply()));
     nel2 = 3.cons(4.cons(Nil.apply()));
 }
 public override void Because()
 {
     joined = nel2.Join(nel1);
 }
Example #5
0
 public ISemiJoin <NonEmptySList <T> > SemiJoin(ISemiJoin <NonEmptySList <T> > other)
 {
     return(Join(other));
 }
Example #6
0
 /// <summary>
 /// Joins this SList&lt;T&gt; to another SList&lt;T&gt;
 /// </summary>
 /// <param name="other"></param>
 /// <returns>NonEmptySList&lt;T&gt; a unified list contain T from both lists</returns>
 public NonEmptySList <T> Join(ISemiJoin <NonEmptySList <T> > other)
 {
     return(Prepend(other.Value.Head).prependWith(other.Value.Tail));
 }