1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84
| #实例方法 #&(other : Array(U)) forall U #*(times : Int) #+(other : Array(U)) forall U #-(other : Array(U)) forall U #<<(value : T) #<=>(other : Array) #==(other : Array) #[](start : Int, count : Int) #[](range : Range) #[]=(range : Range, value : T) #[]=(range : Range, values : Array(T)) #[]=(index : Int, value : T) #[]=(index : Int, count : Int, value : T) #[]=(index : Int, count : Int, values : Array(T)) #[]?(start : Int, count : Int) #[]?(range : Range(Int, Int)) #clear #clone #combinations(size : Int = self.size) #compact #compact! #concat(other : Array) #delete(obj) #delete_at(index : Int, count : Int) #delete_at(index : Int) #delete_at(range : Range) #fill(from : Int, &block) #fill(range : Range, &block) #fill(value : T, from : Int, count : Int) #fill(value : T, range : Range) #fill(value : T) #first(n : Int) #last(n : Int) #map(&block : T -> U) forall U #map!(&block) #map_with_index(&block : T, Int32 -> U) forall U #map_with_index!(&block : T, Int32 -> T) #pop #pop(&block) #pop(n : Int) #pop? #push(value : T) #push(*values : T) #reject!(&block) #reject!(pattern) #replace(other : Array) #reverse #reverse! #sample(n : Int, random = Random::DEFAULT) #select!(pattern) #select!(&block) #shift #shift(n : Int) #shift(&block) #shift? #shuffle(random = Random::DEFAULT) #shuffle!(random = Random::DEFAULT) #size : Int32 #skip(count : Int) : Array(T) #sort : Array(T) #sort! : Array(T) #sort_by!(&block : T -> UNDERSCORE) : Array(T) #swap(index0, index1) : Array(T) #to_json(json : JSON::Builder) #to_a #to_s(io : IO) : Nil #uniq #uniq(&block : T -> UNDERSCORE) #uniq! #uniq!(&block) #unshift(obj : T) #unshift(*values : T) #update(index : Int, &block) #|(other : Array(U)) forall U
从module Indexable(T)继承来的方法 [], []?, bsearch, bsearch_index, dig, dig?, each, each_index, empty?, equals?, fetch, first, first?, hash, index, join, last, last?, reverse_each, rindex, sample, size, to_a, unsafe_fetch, values_at
从module Enumerable(T)继承来的方法 all?, any?, chunks, compact_map, count, cycle, each, each_cons, each_slice, each_with_index, each_with_object, find, first, first?, flat_map, grep, group_by, in_groups_of, includes?, index, index_by, join, map, map_with_index, max, max?, max_by, max_by?, max_of, max_of?, min, min?, min_by, min_by?, min_of, min_of?, minmax, minmax?, minmax_by, minmax_by?, minmax_of, minmax_of?, none?, one?, partition, product, reduce, reject, select, size, skip, skip_while, sum, take_while, to_a, to_h, to_set, zip, zip?
从module Iterable(T)继承来的方法 chunk, chunk_while, cycle, each, each_cons, each_slice, each_with_index, each_with_object, slice_after, slice_before, slice_when
|