Skip to content

Commit

Permalink
Add Clojure solution (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
pontakornth authored Oct 23, 2021
1 parent f3c18d6 commit 9e47492
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions Clojure/pontakornth.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
(def coffee "coffee")

(defn coffee-to-drink
[coff]
(when (= coff coffee)
"drink"))

(defn drink-to-thought
[drink]
(when (= drink "drink")
"thought"))

(defn thought-to-action
[thought]
(when (= thought "thought")
"action"))

(defn action-to-code
[action]
(when (= action "action")
"code"))

(println
(-> coffee
coffee-to-drink
drink-to-thought
thought-to-action
action-to-code))

0 comments on commit 9e47492

Please sign in to comment.