Closed allenwb closed 8 years ago
The new abstraction creates a temporary array to parse the items through the mapping function and calls the constructor using it. The adder method is not necessary anymore in this case.
Ref https://leobalter.github.io/proposal-setmap-offrom/#sec-collectioncreatefrom%20aoid=
The value of _add__ is either "add" or "set" and is called as: Call(add, targetObj, « mappedValue » )(
but, the Map
set
method requires two arguments while the and the Setadd
method only takes one. You don't take that into account.