4 ms·
How are they planning on structuring the collections methods? Is map going to be on Arrays, and Maps and Lists etc? Or will they utilize some sort of typeclass
by domlebo70 14y ago
How are they planning on structuring the collections methods? Is map going to be on Arrays, and Maps and Lists etc? Or will they utilize some sort of typeclass approach and have them as modular as possible?
- asolove 14y agoThey aren't planning to add collection methods, just to provide a means for existing methods like Array#map and Array#filter to be typed. Right now there is no way to write a type signature that says, given an array of numbers and a function from numbers to strings, Array#map returns an array of strings. This allows that.