We're considering to introduce something like comb...
# stdlib
i
We're considering to introduce something like combination of
flatMap { buildSequence { }}
, say
flatBuild
, so that one could yield several values from lambda:
Copy code
listOf(2, 3, 4).flatBuild { 
    yield(it)
    if (it % 2 == 0) yield(-it)
}
👍 4