Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

"k" local variable is more appropriate here.

  • Loading branch information...
commit 72fa08c0c3e3bdad448b16fe4981f9fb3e03d8ba 1 parent 257f214
Postmodern authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/combinatorics/power_set/mixin.rb
4 lib/combinatorics/power_set/mixin.rb
View
@@ -34,8 +34,8 @@ def powerset
elements = self.to_a
elements.uniq!
- 0.upto(elements.length) do |n|
- elements.combination(n) do |subset|
+ 0.upto(elements.length) do |k|
+ elements.combination(k) do |subset|
yield Set.new(subset)
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.