Will Harrison
12/21/2018, 11:00 PMentries
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 individuallyRuckus
12/21/2018, 11:02 PMlist.map { ... }
should work fine. There's nothing saying map
can't have the same return type as the original list.Will Harrison
12/21/2018, 11:20 PM