Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/array.rb
Instance Method Summary collapse
Instance Method Details
#uniqc ⇒ Object
2 3 4 |
# File 'lib/array.rb', line 2 def uniqc self.group_by { |x| x }.map { |k,v| [k,v.count] } end |