Class: Array
Instance Method Summary collapse
-
#difference(other) ⇒ Object
included
from FatCore::Array
Return an Array that is the difference between this Array and +other+, but without removing duplicates as the Array#- method does.
-
#intersect(other) ⇒ Object
included
from FatCore::Array
Return a new Array that is the intersection of this Array with +other+, but without removing duplicates as the Array#& method does.
-
#last_i ⇒ Object
included
from FatCore::Array
Return the index of the last element of this Array.
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_i ⇒ Object 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.