module Nuggets::Array::RuniqMixin

Public Instance Methods

runiq → an_array click to toggle source

Reverse uniq.

# File lib/nuggets/array/runiq_mixin.rb, line 35
def runiq
  reverse.uniq.reverse
end
runiq! → an_array or +nil+ click to toggle source

Reverse uniq!.

# File lib/nuggets/array/runiq_mixin.rb, line 43
def runiq!
  reverse!
  res = uniq!
  reverse!
  res && self
end