Dmitry Soshnikov wrote:
The Collection protocol thus consists of at least .constructor, @@iterator, .set. (Is there a better way to clone? Don't want a new protocol where an old one will suffice!) This Collection protocol would include Map and maplikes but leaves out Set, Array, Object -- appropriately. As long as it can be generic enough for `Map`, `Set`
Set methods include add, whereas Map has set. Set lacks a get method, whereas Map of course has one. So not the same protocol.
/be _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss