It might be nice if the transforming methods on `S...
# stdlib
k
It might be nice if the transforming methods on `Sequence`s had methods that you could return `Iterable`s out of, and then it just calls
.asSequence()
internally. Too often I find myself doing things like
foo.flatmap { it.toBarList().asSequence() }
, when it should be fairly obvious what I want to do if I'm returning a
List
there instead of a
Sequence
👍 1