Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created June 22, 2017 16:41
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 infinite-Joy/3183bff517f09139c24051f82a0e816c to your computer and use it in GitHub Desktop.
Save infinite-Joy/3183bff517f09139c24051f82a0e816c to your computer and use it in GitHub Desktop.
user=> (def plants-in-lalbagh ["Amherstia Nobilis" "Adansonia digitata" "Ficus bengalensis var - krishnae" "Araucaria Cookie" "Bombax Ceiba"])
#'user/plants-in-lalbagh
user=>
user=> (nth plants-in-lalbagh 2)
"Ficus bengalensis var - krishnae"
user=> (get plants-in-lalbagh 2)
"Ficus bengalensis var - krishnae"
user=> (conj plants-in-lalbagh "eucalyptus")
["Amherstia Nobilis" "Adansonia digitata" "Ficus bengalensis var - krishnae" "Araucaria Cookie" "Bombax Ceiba" "eucalyptus"]
user=> (def plants-in-lalbagh1 ["Amherstia Nobilis" "Adansonia digitata"])
#'user/plants-in-lalbagh1
user=> (def plants-in-lalbagh2 ["Araucaria Cookie" "Bombax Ceiba"])
#'user/plants-in-lalbagh2
user=> (concat plants-in-lalbagh)
plants-in-lalbagh plants-in-lalbagh1 plants-in-lalbagh2
user=> (concat plants-in-lalbagh1 plants-in-lalbagh)
plants-in-lalbagh plants-in-lalbagh1 plants-in-lalbagh2
user=> (concat plants-in-lalbagh1 plants-in-lalbagh2)
("Amherstia Nobilis" "Adansonia digitata" "Araucaria Cookie" "Bombax Ceiba")
user=>
@tellspec-mark
Copy link

that's not what (concat plants-in-lalbagh) returns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment