Class: Array

Inherits:
Object
  • Object
show all
Includes:
FatCore::Array
Defined in:
lib/fat_core/array.rb

Instance Method Summary collapse

Instance Method Details

#difference(other) ⇒ Object Originally defined in module FatCore::Array

Return an Array that is the difference between this Array and +other+, but without removing duplicates as the Array#- method does. All items of this Array are included in the result unless they also appear in the +other+ Array.

#intersect(other) ⇒ Object Originally defined in module FatCore::Array

Return a new Array that is the intersection of this Array with +other+, but without removing duplicates as the Array#& method does. All items of this Array are included in the result but only if they also appear in the +other+ Array.

#last_iObject Originally defined in module FatCore::Array

Return the index of the last element of this Array. This is just a convenience for an oft-needed Array attribute.