Jamie Taylor11/21/2019, 4:18 PM
diesieben0711/21/2019, 4:18 PM
always returns a
, regardless of input.
also returns a
Stephan Schroeder11/21/2019, 4:40 PM
it’s probably forced because multiple values could be mapped to the same one and they didn’t want to have the number of elements change within a
operation. On Array, it’s probably to avoid to have to reimplement all the operations present on Iterable???
Mtsahakis11/21/2019, 5:05 PM
one but that ship might have sailed as other parts of the api could expect map to return a
operation I had to convert back to an array for my use case.
Stephan Schroeder11/21/2019, 5:11 PM
= Boolean, Char and all the number types), so you can easily repackage the result of your map-operation in a new array (I guess normal objects shouldn’t be packed into arrays anyway!?)