class
Godot::PackedInt64Array
- Godot::PackedInt64Array
- Reference
- Object
Included Modules
- Enumerable(Int64)
Defined in:
libgodot/collections.crConstructors
- .from(items : Array(Int64)) : PackedInt64Array
- .new(size : Int, initial_value : Int64 = 0_i64)
- .new(initial_items : Array(Int64))
- .new
Instance Method Summary
- #<<(value : Int64) : self
- #[](index : Int) : Int64
- #[]=(index : Int, value : Int64) : Int64
- #[]?(index : Int) : Int64 | Nil
- #append(value : Int64) : self
- #clear : Void
-
#each(&block : Int64 -> Void) : Void
Must yield this collection's elements to the block.
-
#empty? : Bool
Returns
trueifselfdoes not contain any element. - #is_empty : Bool
- #push(value : Int64) : self
- #resize(new_size : Int) : Void
-
#size : Int64
Returns the number of elements in the collection.
-
#to_a : Array(Int64)
Returns an
Arraywith all the elements in the collection.
Constructor Detail
Instance Method Detail
def each(&block : Int64 -> Void) : Void
#
Description copied from module Enumerable(Int64)
Must yield this collection's elements to the block.
def empty? : Bool
#
Description copied from module Enumerable(Int64)
Returns true if self does not contain any element.
([] of Int32).empty? # => true
([1]).empty? # => false
[nil, false].empty? # => false
#present?returns the inverse.
def size : Int64
#
Description copied from module Enumerable(Int64)
Returns the number of elements in the collection.
[1, 2, 3, 4].size # => 4