Skip to content

Instantly share code, notes, and snippets.

@technomancy
Last active February 23, 2022 22: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 technomancy/d947fd2f2c02d576568ee3b54a14e4ae to your computer and use it in GitHub Desktop.
Save technomancy/d947fd2f2c02d576568ee3b54a14e4ae to your computer and use it in GitHub Desktop.
user=> (def s (map = (range 100) (concat (range 78) [:lol] (range 99))))
#'user/s
user=> (realized? s)
false
user=> (every? true? s)
false
user=> (realized? s)
true
user=>
;; HOWEVER
user=> (def s (map = (range 100) (concat (range 78) [:lol] (range 99999))))
#'user/s
user=> (some #(= false %) s)
true
user=> (realized? (take 100 s))
false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment