Deal cards for FreeCell: Difference between revisions

→‎{{header|Ruby}}: Fix a bug in Enumerable#each_slice for old Ruby. This method must not modify the Array after yielding it.
m (→‎{{header|OCaml}}: put the main function first)
(→‎{{header|Ruby}}: Fix a bug in Enumerable#each_slice for old Ruby. This method must not modify the Array after yielding it.)
Line 426:
each {|e|
ary << e
ary.length == count and (yield ary.dup; ary.clear)}
ary.empty? or yield ary.dup
nil
end
Anonymous user