more explicit impl of Iterable.sequence()