Re:Go 1.21 may have a clear(x) builtin
by tapirl on Saturday November 19, 2022 @11:33PM
(#33678280)
Yes, for most cases, the for-loop is as efficient as the proposed "clear" function. I am not sure whether or not this is still true if there are NaN keys in the cleared map.
[ Parent
| on HN ]
There are no comments on this comment yet.