runEach<T> function

Iterable<T> runEach<T>(
  1. void doFunction(
    1. T value
    ),
  2. Iterable<T> next
)

Implementation

Iterable<T> runEach<T>(void Function(T value) doFunction, Iterable<T> next) {
  for (final T item in next) {
    doFunction(item);
  }
  return next;
}