contains (def m {:first " Andre " :second " Shooter "}) (println "Map contem KEY: 'first'? "( contains ? m :first) " Valor:"(m :first)) (println "Map contem KEY: 'second'? "( contains ? m :second) " Valor:"(m :second)) (println "Map contem KEY: 'blastoise'? "( contains ? m :blastoise)) Output: Map contem KEY: 'first'?  true   Valor:  Andre Map contem KEY: 'second'?  true   Valor:  Shooter Map contem KEY: 'blastoise'?  false
empty (def m '()) (println "def m '() empty?"( empty ? m)) Output: def m '() empty?  true (def n '(" Andre " " Shooter ")) (println "def n '(\" Andre \" \" Shooter \") empty?"(empty? n)) Output: def n '(" Andre " " Shooter ") empty?  false
for ( for  [v [1 2 3 4 5]] (println (str "Hello World " v) )) Hello World 1 Hello World 2 Hello World 3 Hello World 4 Hello World 5

Clojure language

  • 1.
  • 2.
    contains (def m{:first " Andre " :second " Shooter "}) (println "Map contem KEY: 'first'? "( contains ? m :first) " Valor:"(m :first)) (println "Map contem KEY: 'second'? "( contains ? m :second) " Valor:"(m :second)) (println "Map contem KEY: 'blastoise'? "( contains ? m :blastoise)) Output: Map contem KEY: 'first'? true Valor: Andre Map contem KEY: 'second'? true Valor: Shooter Map contem KEY: 'blastoise'? false
  • 3.
    empty (def m'()) (println "def m '() empty?"( empty ? m)) Output: def m '() empty? true (def n '(" Andre " " Shooter ")) (println "def n '(\" Andre \" \" Shooter \") empty?"(empty? n)) Output: def n '(" Andre " " Shooter ") empty? false
  • 4.
    for ( for [v [1 2 3 4 5]] (println (str "Hello World " v) )) Hello World 1 Hello World 2 Hello World 3 Hello World 4 Hello World 5