Esempio n. 1
0
        public static Cons Reductions(IApply reducer, IEnumerable seq, params object[] args)
        {
            var kwargs = ParseKwargs(args, new string[] { "initial-value", "key" }, MissingValue, null);
            var seed   = kwargs[0];
            var key    = GetClosure(kwargs[1]);

            return(AsLazyList(SeqBase.Reductions(reducer, seq, seed, key)));
        }
Esempio n. 2
0
 public static Cons Reductions(IApply reducer, object seed, IEnumerable seq)
 {
     return(AsLazyList(SeqBase.Reductions(reducer, seed, seq)));
 }