Skip to content

Instantly share code, notes, and snippets.

@viebel
Created June 28, 2019 15:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save viebel/f6e38be551252b6ddf1e12bdb6011327 to your computer and use it in GitHub Desktop.
Save viebel/f6e38be551252b6ddf1e12bdb6011327 to your computer and use it in GitHub Desktop.
(str "Hello Advah"
" "
"Hello Yair")
(defn h [name]
(str "Hello"
" "
name))
[(h "Yair")
(h "Advah")]
(defn hello-2 [name1 name2]
[(h name1)
(h name2)])
(hello-2 "Yair" "Advah")
(defn hello-3 [name1 name2 name3]
[(h name1)
(h name2)
(h name3)])
(hello-3 "Yair" "Advah" "Nehoray")
(defn hello-list [list-of-names]
(map h list-of-names))
(hello-list ["Yair" "Nehoray" "Advah" "Orel" "Odaya"])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment