Bump koan-engine dependency
Also eliminates some ns forms that we can do without now. Closes #71
This commit is contained in:
parent
711925a043
commit
04b3c4a960
@ -1,12 +1,10 @@
|
||||
(defproject clojure-koans "0.5.0-SNAPSHOT"
|
||||
:description "The Clojure koans."
|
||||
:dependencies [[org.clojure/clojure "1.5.1"]
|
||||
[koan-engine "0.2.1"]]
|
||||
[koan-engine "0.2.2"]]
|
||||
:dev-dependencies [[lein-koan "0.1.2"]]
|
||||
:profiles {:dev {:dependencies [[lein-koan "0.1.2"]]}}
|
||||
:repl-options {
|
||||
:init-ns koan-engine.runner
|
||||
:init (use 'koan-engine.core)
|
||||
}
|
||||
:repl-options {:init-ns koan-engine.runner
|
||||
:init (use 'koan-engine.core)}
|
||||
:plugins [[lein-koan "0.1.2"]]
|
||||
:main koan-engine.runner/exec)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.01-equalities (:use koan-engine.core))
|
||||
(ns koans.01-equalities
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"We shall contemplate truth by testing reality, via equality"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.02-lists (:use koan-engine.core))
|
||||
(ns koans.02-lists
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"Lists can be expressed by function or a quoted form"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.03-vectors (:use koan-engine.core))
|
||||
(ns koans.03-vectors
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"You can use vectors in clojure as array-like structures"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.04-sets (:use koan-engine.core))
|
||||
(ns koans.04-sets
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"You can create a set by converting another collection"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.05-maps (:use koan-engine.core))
|
||||
(ns koans.05-maps
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"Don't get lost when creating a map"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.06-functions (:use koan-engine.core))
|
||||
(ns koans.06-functions
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(defn multiply-by-ten [n]
|
||||
(* 10 n))
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.07-conditionals (:use koan-engine.core))
|
||||
(ns koans.07-conditionals
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(defn explain-defcon-level [exercise-term]
|
||||
(case exercise-term
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.08-higher-order-functions (:use koan-engine.core))
|
||||
(ns koans.08-higher-order-functions
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"The map function relates a sequence to another"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.09-runtime-polymorphism (:use koan-engine.core))
|
||||
(ns koans.09-runtime-polymorphism
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(defn hello
|
||||
([] "Hello World!")
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.10-lazy-sequences (:use koan-engine.core))
|
||||
(ns koans.10-lazy-sequences
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"There are many ways to generate a sequence"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.11-sequence-comprehensions (:use koan-engine.core))
|
||||
(ns koans.11-sequence-comprehensions
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"Sequence comprehensions can bind each element in turn to a symbol"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.12-creating-functions (:use koan-engine.core))
|
||||
(ns koans.12-creating-functions
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(defn square [x] (* x x))
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.13-recursion (:use koan-engine.core))
|
||||
(ns koans.13-recursion
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(defn is-even? [n]
|
||||
(if (= n 0)
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.14-destructuring (:use koan-engine.core))
|
||||
(ns koans.14-destructuring
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(def test-address
|
||||
{:street-address "123 Test Lane"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.15-refs (:use koan-engine.core))
|
||||
(ns koans.15-refs
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(def the-world (ref "hello"))
|
||||
(def bizarro-world (ref {}))
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.16-atoms (:use koan-engine.core))
|
||||
(ns koans.16-atoms
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(def atomic-clock (atom 0))
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.17-macros (:use koan-engine.core))
|
||||
(ns koans.17-macros
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(defmacro hello [x]
|
||||
(str "Hello, " x))
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.18-datatypes (:use koan-engine.core))
|
||||
(ns koans.18-datatypes
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(defrecord Nobel [prize])
|
||||
(deftype Pulitzer [prize])
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.19-java-interop (:use koan-engine.core))
|
||||
(ns koans.19-java-interop
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"You may have done more with Java than you know"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.20-partition (:use koan-engine.core))
|
||||
(ns koans.20-partition
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(meditations
|
||||
"To split a collection you can use the partition function"
|
||||
|
@ -1,5 +1,5 @@
|
||||
(ns koan-engine.runner)
|
||||
(ns koans.21-group-by (:use koan-engine.core))
|
||||
(ns koans.21-group-by
|
||||
(:require [koan-engine.core :refer :all]))
|
||||
|
||||
(defn get-odds-and-evens [coll]
|
||||
(let [{odds true evens false} (group-by __ coll)]
|
||||
|
Loading…
Reference in New Issue
Block a user