Clojure-Contrib

Cartesian product with nil args

Details

  • Type: Defect Defect
  • Status: Resolved Resolved
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None

Description

http://groups.google.com/group/clojure-dev/browse_thread/thread/ac3582cd1698be1

user> (cartesian-product [1 2] [true false] ) 
((1 true) (1 false) (2 true) (2 false)) 
user> (cartesian-product [1 2] [false true]) 
nil 
user> (cartesian-product [1 2] [nil 4]) 
nil 
false/nil in first position seems to cause failure.

Activity

Hide
Stuart Sierra added a comment -

Fixed in repository commit 499b9c02d1932ba0c0651e04b627c25f7f04f0c8

Show
Stuart Sierra added a comment - Fixed in repository commit 499b9c02d1932ba0c0651e04b627c25f7f04f0c8
Hide
Assembla Importer added a comment -

stuart.sierra said: (In revision:499b9c02d1932ba0c0651e04b627c25f7f04f0c8) cartesian-product nil-arg fix; refs #96

Branch: master

Show
Assembla Importer added a comment - stuart.sierra said: (In revision:499b9c02d1932ba0c0651e04b627c25f7f04f0c8) cartesian-product nil-arg fix; refs #96 Branch: master
Hide
Assembla Importer added a comment -
Show
Assembla Importer added a comment - Converted from http://www.assembla.com/spaces/clojure/tickets/96

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: