Created
June 28, 2019 15:36
-
-
Save viebel/f6e38be551252b6ddf1e12bdb6011327 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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