If I have a list of objects called `entries` and w...
# announcements
w
If I have a list of objects called
entries
and wanted to create another list from
entries
by running each item through a method to do some conversions, could I do it using the
list.map{ ... }
function or do I just need to loop through and add each one individually
r
list.map { ... }
should work fine. There's nothing saying
map
can't have the same return type as the original list.
w
thanks
👍 1