Class Array
In: lib/backports/1.9.2/array.rb
lib/backports/1.9.1/array.rb
lib/backports/rails/array.rb
lib/backports/1.8.7/array.rb
Parent: Object

Methods

Public Class methods

Public Instance methods

Standard in Ruby 1.8.7+. See official documentation

Standard in Ruby 1.8.7+. See official documentation

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‘

Standard in Ruby 1.9.2 See official documentation

Standard in Ruby 1.8.7+. See official documentation

Helper to recurse through flattening Adapted from rubinius’; recursion guards are not needed because level is finite

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 Note: was named choice in 1.8.7 and renamed in later versions

Standard in Ruby 1.8.7+. See official documentation

Standard in Ruby 1.8.7+. See official documentation

[Validate]