You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, if we do .size(array) it loops through every item in the array. This is really slow. I'm going to change it so arrays are special cased. We might want to add symbols or other special casing for Map, Set, etc.
Finally, we might want a .isEmpty() method which is often what .size() really wants. This would only need to loop through the first item and exit. Of course, we don't have a way of early exiting currently.
The text was updated successfully, but these errors were encountered:
Currently, if we do
.size(array)
it loops through every item in the array. This is really slow. I'm going to change it so arrays are special cased. We might want to add symbols or other special casing for Map, Set, etc.Finally, we might want a
.isEmpty()
method which is often what.size()
really wants. This would only need to loop through the first item and exit. Of course, we don't have a way of early exiting currently.The text was updated successfully, but these errors were encountered: