module Nuggets::Array::RuniqMixin

Public Instance Methods

runiq → an_array click to toggle source

Reverse uniq.

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

Reverse uniq!.

   # File lib/nuggets/array/runiq_mixin.rb
43 def runiq!
44   reverse!
45   res = uniq!
46   reverse!
47   res && self
48 end