Traditionally map would be (a -> b) -> [a] -> [b], but here we only have (a -> a) -> [a] -> [a] (and in fact we only have i32 anyway). Can/should it test for mapping to a different type?
Note that this would subsume #628 ; you'd not be able to mutate the input if it were a different type, so this could make both proposed changes at once
Traditionally
mapwould be(a -> b) -> [a] -> [b], but here we only have(a -> a) -> [a] -> [a](and in fact we only havei32anyway). Can/should it test for mapping to a different type?Note that this would subsume #628 ; you'd not be able to mutate the input if it were a different type, so this could make both proposed changes at once