示例#1
0
        private static IEnumerable <ISerializable> MultiMap(IMapperReducer mr, IEnumerable <ISerializable> a)
        {
            var mapped = new List <ISerializable>();

            foreach (ISerializable i in a)
            {
                mapped.Add(mr.MapFunction(i));
            }

            return(mapped);
        }
示例#2
0
 private static ISerializable SingleMap(IMapperReducer mr, ISerializable a)
 => mr.MapFunction(a);