Sha256: 3308e2d5bd9cbc53f24a76a167529e73027fd64a1f837dc70d13ccfeceedaab3

Contents?: true

Size: 1.21 KB

Versions: 1

Compression:

Stored size: 1.21 KB

Contents

### 0.3.1 / 2010-10-26

* Do not call `enum_for` on `Enumerator` objects passed to
  {Array#comprehension}.
* Improved {Array#comprehension} benchmarks.
* Added [benchmark results] (see {file:Benchmarks.md}).

### 0.3.0 / 2010-10-17

* Added {Combinatorics::Generator} which auto-detects the `Generator`
  class.
* Added {Combinatorics::Enumerator} which auto-detects the `Enumerator`
  class.
* Better detection of when enumerable values passed to
  {Array#comprehension} reach their last value. This allows using
  `Generator` objects that yield different values for each cycle:

      multiplier = 0
      gen = Generator.new { |g|
        multiplier += 1
        5.times { |i| g.yield (i * multiplier) }
      }
  
      [[1,2], gen].comprehension.to_a
      # => [[1,0],[1,1],[1,2],[1,3],[1,4],[2,0],[2,2],[2,4],[2,6],[2,8]]

* Added a benchmark for {Array#comprehension} (see the
  [benchmarks](http://github.com/postmodern/combinatorics/tree/master/benchmarks) directory).

### 0.2.0 / 2010-10-03

* Added {Range#&}.
* Added {Range#upto}.
* Added {Range#downto}.

### 0.1.0 / 2010-10-02

* Initial release:
  * Adds `powerset` to {Array} and {Set}.
  * Adds Haskell/Python style list comprehensions via {Array#comprehension}.

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
combinatorics-0.3.1 ChangeLog.md