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
In the array section of "Getting Started", it is mentioned that: The above example works just fine, but involves 50 individual reallocations for no reason, since we already knew we were going to add 50 items.
Referring to a for loop 1..50 of array_add(arr, value).
This statement is incorrect, since in the current version of the compiler beta 0.1.092 there will only be 4 allocation for this routine, as shown below:
Size after each allocation: 0 -> 8 -> 16 -> 32 -> 64
The text was updated successfully, but these errors were encountered:
In the array section of "Getting Started", it is mentioned that:
The above example works just fine, but involves 50 individual reallocations for no reason, since we already knew we were going to add 50 items.
Referring to a for loop
1..50
ofarray_add(arr, value)
.This statement is incorrect, since in the current version of the compiler
beta 0.1.092
there will only be 4 allocation for this routine, as shown below:Size after each allocation:
0 -> 8 -> 16 -> 32 -> 64
The text was updated successfully, but these errors were encountered: