コード例 #1
0
 public override void Given()
 {
     nel1 = 1.cons(2.cons(Nil.apply()));
     nel2 = 3.cons(4.cons(Nil.apply()));
 }
コード例 #2
0
 public override void Because()
 {
     joined = nel2.Join(nel1);
 }
コード例 #3
0
 public override void Given()
 {
     nel1 = 1.cons(2.cons(Nil.apply()));
     nel2 = 3.cons(4.cons(Nil.apply()));
 }
コード例 #4
0
 public override void Because()
 {
     joined = nel2.Join(nel1);
 }
コード例 #5
0
ファイル: SList.cs プロジェクト: j3ffb/scalesque
 public ISemiJoin <NonEmptySList <T> > SemiJoin(ISemiJoin <NonEmptySList <T> > other)
 {
     return(Join(other));
 }
コード例 #6
0
ファイル: SList.cs プロジェクト: j3ffb/scalesque
 /// <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));
 }