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

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: