process method

I process({
  1. bool test(
    1. IList<T> list,
    2. int index,
    3. T item
    )?,
  2. required Iterable<T> apply(
    1. IList<T> list,
    2. int index,
    3. T item
    ),
})

Implementation

I process(
        {bool Function(IList<T> list, int index, T item)? test,
        required Iterable<T> Function(IList<T> list, int index, T item) apply}) =>
    newInstance(iter.process(test: test, convert: apply));