Returns the number of elements in this container.
Returns an Array
with all the elements in the collection.
Returns the element at the given index, without doing any bounds check.
Indexable(LLVM::Value)
Enumerable(LLVM::Value)
Iterable(LLVM::Value)
Struct
Value
Object
Object
Returns the number of elements in this container.
Returns an Array
with all the elements in the collection.
{1, 2, 3}.to_a # => [1, 2, 3]
Returns the element at the given index, without doing any bounds check.
Indexable
makes sure to invoke this method with index in 0...size
, so converting negative indices to positive ones is not needed here.
Clients never invoke this method directly. Instead, they access elements with #[](index)
and #[]?(index)
.
This method should only be directly invoked if you are absolutely sure the index is in bounds, to avoid a bounds check for a small boost of performance.
© 2012–2020 Manas Technology Solutions.
Licensed under the Apache License, Version 2.0.
https://crystal-lang.org/api/0.35.1/LLVM/ParameterCollection.html