We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Capacity hints for large collections — Pre-allocate capacity with .new(capacity) for large collections to avoid repeated resizing.
.new(capacity)
ary = [] of Int32 10_000.times { |i| ary << i }
There was an error while loading. Please reload this page.