traverseOption<B> method
Implementation
Option<IVector<B>> traverseOption<B>(Option<B> f(A a)) =>
_elementsByIndex.foldLeft(some(emptyVector()),
(prev, a) => prev.fold(none, (p) => f(a).fold(none, (b) => some(p.appendElement(b)))));