Skip to content

Commit

Permalink
Filled in an @example.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Oct 15, 2011
1 parent 84b1484 commit ebc788a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/combinatorics/cartesian_product/mixin.rb
Expand Up @@ -33,6 +33,11 @@ module Mixin
# # => [["a", "b"], ["a", "c"], ["a", "d"]]
#
# @example Three-way Cartesian product operation
# [0, 1].cartprod([2, 3], [4, 5])
# # => [
# # [0, 2, 4], [0, 2, 5], [0, 3, 4], [0, 3, 5],
# # [1, 2, 4], [1, 2, 5], [1, 3, 4], [1, 3, 5],
# # ]
#
# @see http://en.wikipedia.org/wiki/Cartesian_product
#
Expand Down

0 comments on commit ebc788a

Please sign in to comment.