sequence method

IList sequence(
  1. Iterable<State<S, dynamic>> arr
)

Run the iterable of State's in sequence

Implementation

IList<Tuple2<dynamic, S>> sequence(Iterable<State<S, dynamic>> arr) =>
    arr.map(run).toIList();