Skip to content

Instantly share code, notes, and snippets.

@uvtc
Created October 9, 2013 03:28
Show Gist options
  • Save uvtc/6895758 to your computer and use it in GitHub Desktop.
Save uvtc/6895758 to your computer and use it in GitHub Desktop.
using pomegranate in a script
#!/usr/bin/env lein-run
(require '[cemerick.pomegranate :as pome])
(pome/add-dependencies
:coordinates '[[org.clojure/math.combinatorics "0.0.4"]]
:repositories (merge cemerick.pomegranate.aether/maven-central
{"clojars" "http://clojars.org/repo"}))
(require '[clojure.math.combinatorics :as combo])
;;-------------------------------------------------------
(println (combo/combinations [1 2 3] 2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment