Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created June 22, 2017 16:38
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/e0a47f06193c72625a046e7ac6f06d36 to your computer and use it in GitHub Desktop.
Save infinite-Joy/e0a47f06193c72625a046e7ac6f06d36 to your computer and use it in GitHub Desktop.
user=> (def banned-books #{"the hindus", "The God of Small Things"})
#'user/banned-books
user=> (count banned-books)
2
user=> (seq banned-books)
("The God of Small Things" "the hindus")
user=> (conj banned-books "Five Past Midnight in Bhopal")
#{"The God of Small Things" "Five Past Midnight in Bhopal" "the hindus"}
user=> (disj banned-books "The God of Small Things")
#{"the hindus"}
user=> (contains? banned-books "the hindus")
true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment