Exemplo 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)));
        }
Exemplo n.º 2
0
 public static Cons Reductions(IApply reducer, object seed, IEnumerable seq)
 {
     return(AsLazyList(SeqBase.Reductions(reducer, seed, seq)));
 }