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 ISemiJoin <NonEmptySList <T> > SemiJoin(ISemiJoin <NonEmptySList <T> > other) { return(Join(other)); }
/// <summary> /// Joins this SList<T> to another SList<T> /// </summary> /// <param name="other"></param> /// <returns>NonEmptySList<T> 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)); }