Class Array
In: lib/backports/rails/array.rb
lib/backports/2.0.0/array/bsearch.rb
lib/backports/1.9.2/array/uniq.rb
lib/backports/1.9.2/array/sort_by.rb
lib/backports/1.9.2/array/select.rb
lib/backports/1.9.2/array/rotate.rb
lib/backports/1.9.2/array/repeated_permutation.rb
lib/backports/1.9.2/array/repeated_combination.rb
lib/backports/1.9.2/array/product.rb
lib/backports/1.9.2/array/keep_if.rb
lib/backports/1.9.1/array/sample.rb
lib/backports/1.8.7/array/shuffle.rb
lib/backports/1.8.7/array/shift.rb
lib/backports/1.8.7/array/rindex.rb
lib/backports/1.8.7/array/product.rb
lib/backports/1.8.7/array/pop.rb
lib/backports/1.8.7/array/permutation.rb
lib/backports/1.8.7/array/index.rb
lib/backports/1.8.7/array/flatten.rb
lib/backports/1.8.7/array/cycle.rb
lib/backports/1.8.7/array/combination.rb
Parent: Object

Methods

External Aliases

index -> find_index

Public Class methods

Public Instance methods

Recursively flatten any contained Arrays into an one-dimensional result. Adapted from rubinius‘

Flattens self in place as flatten. If no changes are made, returns nil, otherwise self. Adapted from rubinius‘

Note: Combinations are not yielded in the same order as MRI. This is not a bug; the spec states that the order is implementation dependent

Note: Permutations are not yielded in the same order as MRI. This is not a bug; the spec states that the order is implementation dependent!!!

Standard in Ruby 1.8.7+. See official documentation

[Validate]