Ola Gawell
03/04/2020, 12:35 PMforEach
but that doesn't end the squence/iterator. I can do it with map
and then return the item in the end, but I guess there is an operator for this already.
list.map { it ->
doSomethingWithIt(it)
it
}
SackCastellon
03/04/2020, 12:36 PMOla Gawell
03/04/2020, 12:37 PM