Class: PangrammicSurplus::MinimalCount
- Inherits:
-
Object
- Object
- PangrammicSurplus::MinimalCount
- Defined in:
- lib/pangrammic_surplus/minimal_count.rb
Class Method Summary collapse
Class Method Details
.for(input) ⇒ Object
4 5 6 7 |
# File 'lib/pangrammic_surplus/minimal_count.rb', line 4 def for(input) terms = input.map { |k, v| term(k, v) } ps::Vector.add(*terms) end |