traverseState<S, B> method
Implementation
State<S, IVector<B>> traverseState<S, B>(State<S, B> f(A a)) =>
_elementsByIndex.foldLeft(new State((s) => tuple2(emptyVector(), s)), (prev, a) => prev.flatMap((p) => f(a).map((b) => p.appendElement(b))));