(require '[clojure.math.combinatorics :as comb]) (defn solve [n] (->> (comb/selections ["A" "C" "G" "T"] n) (map clojure.string/join) (filter #(re-find #"AAG" %)))) (defn -main [] (println (solve 5)))
Standard input is empty
Standard output is empty
Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/math/combinatorics__init.class or clojure/math/combinatorics.clj on classpath: at clojure.lang.RT.load(RT.java:434) at clojure.lang.RT.load(RT.java:402) at clojure.core$load$fn__5039.invoke(core.clj:5520) at clojure.core$load.doInvoke(core.clj:5519) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.core$load_one.invoke(core.clj:5326) at clojure.core$load_lib$fn__4988.invoke(core.clj:5365) at clojure.core$load_lib.doInvoke(core.clj:5364) at clojure.lang.RestFn.applyTo(RestFn.java:142) at clojure.core$apply.invoke(core.clj:619) at clojure.core$load_libs.doInvoke(core.clj:5403) at clojure.lang.RestFn.applyTo(RestFn.java:137) at clojure.core$apply.invoke(core.clj:619) at clojure.core$require.doInvoke(core.clj:5486) at clojure.lang.RestFn.invoke(RestFn.java:408) at user$eval1.invoke(prog.clj:1) at clojure.lang.Compiler.eval(Compiler.java:6618) at clojure.lang.Compiler.load(Compiler.java:7062) at clojure.lang.Compiler.loadFile(Compiler.java:7019) at clojure.main$load_script.invoke(main.clj:286) at clojure.main$script_opt.invoke(main.clj:348) at clojure.main$main$fn__6676.invoke(main.clj:432) at clojure.main$main.doInvoke(main.clj:429) at clojure.lang.RestFn.invoke(RestFn.java:408) at clojure.lang.Var.invoke(Var.java:415) at clojure.lang.AFn.applyToHelper(AFn.java:161) at clojure.lang.Var.applyTo(Var.java:532) at clojure.main.main(main.java:37)