public void Iterate(IIterator <TResult> iterator) { using (var handle = link.Subscribe(iterator)) { iterable.Iterate(link); } }
public IterEnumerable(IIterable <T> iterable, IFiberFactory fiberFactory) : this(f => iterable.Iterate(Iterator.Create(f)), fiberFactory) { }
public static void ForEach<T>(this IIterable<T> iterable, Func<T, bool> iterator) { iterable.Iterate(Iterator.Create(iterator)); }
public static void ForEach<T>(this IIterable<T> iterable, Action<T> iterator) { iterable.Iterate(Iterator.Create<T>(value => {iterator(value); return true;})); }