thats is what i figured, but i thought there might be some creative way to do it by returning null. just seems like a nice use case, but there may also be no performance gain
a
Adam Cameron
01/26/2023, 5:34 PM
map is specifically for mapping the original values "inplace", so the collection intrinsically does not have any change of keys (and accordingly length)