module Chem::ArrayView(T)

Included Modules

Direct including types

Defined in:

chem/core/array_view.cr

Constructors

Instance Method Summary

Instance methods inherited from module Indexable(T)

index!(of object, offset : Int = 0) : Int
index!(offset : Int = 0, &block : T -> Bool) : Int
index!

Constructor Detail

def self.new(items) #

[View source]

Instance Method Detail

def [](start : Int, count : Int) : self #

[View source]
def [](range : Range(Int, Int)) : self #

[View source]
def find(*args, **options) #

[View source]
def find(*args, **options, &) #

[View source]
def size(*args, **options) #

[View source]
def size(*args, **options, &) #

[View source]
def sort_by(&block : T -> _) : self #

[View source]
def to_a : Array(T) #
Description copied from module Indexable(T)

Returns an Array with all the elements in the collection.

{1, 2, 3}.to_a # => [1, 2, 3]

[View source]
def unsafe_fetch(*args, **options) #

[View source]
def unsafe_fetch(*args, **options, &) #

[View source]