(Extensible Data Notation)
(defn say-hi
[name]
(print "Hi " name "!"))
(fn [name]
(print "Hi " name "!")
(ns clojureba.skynet)
(defn take-over [world]
(prn "I'm taking over the " world
", please stand by..."))
(def targets ["Sarah Connor",
"John Connor"])
src/clojureba/skynet.clj
(ns clojureba.terminator
(:require [clojureba.skynet :as skynet]))
(defn terminate [target]
(prn "Terminating " target "..."))
(defn terminate-all
[]
(map terminate skynet/targets))
src/clojureba/terminator.clj