Skip to content

Instantly share code, notes, and snippets.

@marick
Created June 15, 2010 18:47
Show Gist options
  • Save marick/439503 to your computer and use it in GitHub Desktop.
Save marick/439503 to your computer and use it in GitHub Desktop.
user=> (def product (cartesian-product [-1 0 1] [-1 0 1]))
#'user/product
user=> product
((-1 -1) (-1 0) (-1 1) (0 -1) (0 0) (0 1) (1 -1) (1 0) (1 1))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment