Example #1
0
        internal Reducible(IApply transform, IEnumerable seq, bool useApply)
        {
            UseApply = useApply;

            if (seq is Reducible)
            {
                var reducer = (Reducible)seq;
                Seq       = reducer.Seq;
                Transform = Runtime.Compose(transform, reducer.Transform);
            }
            else
            {
                Seq       = seq;
                Transform = transform;
            }
        }
Example #2
0
 internal static IApply Mapcat(IApply f)
 {
     return(Runtime.Compose(Map(f), Cat()));
 }