public static IEnumerable map(object enumerable, ICallable function) { if (null == enumerable) { throw new ArgumentNullException("enumerable"); } if (null == function) { throw new ArgumentNullException("function"); } return(new MapEnumerable(RuntimeServices.GetEnumerable(enumerable), function)); }
private static IEnumerator GetEnumerator(object enumerable) { return(RuntimeServices.GetEnumerable(enumerable).GetEnumerator()); }
public static IEnumerable iterator(object enumerable) { return(RuntimeServices.GetEnumerable(enumerable)); }
//[EnumeratorItemType(Type.GetType("System.Object[]"))] public static IEnumerable enumerate(object enumerable) { return(new EnumerateEnumerator(RuntimeServices.GetEnumerable(enumerable).GetEnumerator())); }