We have extension functions. But i dont want to wr...
# announcements
s
We have extension functions. But i dont want to write a for loop
s
I’m assuming you’re already looking at a solution that involves
.map {}
?
s
Correct
s
Is there something unsatisfactory about the usual
Copy code
val transformed = myCollection.map {
  // code that converts a User into a UserResponse
}
approach?
s
Trying
This works Shawn! Thank you
👍 1