Ejemplo n.º 1
0
        public static FuncyListTC <T> Take <T>(this FuncyListTC <T> source, int count)
        {
            if (source.IsNil)
            {
                return(FuncyListTC.Nil <T>());
            }

            return(FuncyListTC.Construct(((IEnumerable <T>)source).Take <T>(count).ToArray()));
        }
Ejemplo n.º 2
0
 public static FuncyListTC <T> ToFuncyList <T>(this NonEmptyListTC <T> self)
 {
     return(FuncyListTC.Construct <T>(self.ToArray()));
 }