Created
October 9, 2013 03:28
-
-
Save uvtc/6895758 to your computer and use it in GitHub Desktop.
using pomegranate in a script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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