 (dec3 8)
 
 
-
+;;chapter 4
+;;programming to abstractions - key concept in clojure
+
+;;a sequence is a collection of elements organized in linear order
+
+(defn titleize
+  [topic]
+  (str topic "for the Brave and True"))
+
+(map titleize ["Hamsters" "Puppies"]) ;map works with a vector
+(map titleize '("Empathy" "Hatred")) ;map works with a list
+(map titleize #{"Elbows" "Decorating"}) ;map works with unsorted sets
+
+;;first, rest, and cons is all you need to create the maps
+
+
+

(ns clojure-noon.core
  (:gen-class))

(require '[clojure.string :as str])


;; contains? vs keyword vs get
(contains? #{:a :b} :a) ;returns true

;using a keyword
(:a #{:a :b}) ; returns :a
