Skip to content

Instantly share code, notes, and snippets.

@fbmnds
Forked from anonymous/lazyseqs_vs_lists.clj
Created July 25, 2013 10:01
Show Gist options
  • Select an option

  • Save fbmnds/6078396 to your computer and use it in GitHub Desktop.

Select an option

Save fbmnds/6078396 to your computer and use it in GitHub Desktop.
(class (repeat 1))
; clojure.lang.LazySeq
(ancestors clojure.lang.LazySeq)
; #{clojure.lang.IPersistentCollection clojure.lang.IPending java.util.Collection
; java.util.List clojure.lang.Obj clojure.lang.ISeq clojure.lang.IMeta java.io.Serializable
; clojure.lang.IHashEq clojure.lang.IObj clojure.lang.Seqable clojure.lang.Sequential
; java.lang.Iterable java.lang.Object}
(clojure.set/difference (ancestors clojure.lang.PersistentList) (ancestors clojure.lang.LazySeq))
; #{clojure.lang.Counted clojure.lang.IReduce clojure.lang.IPersistentStack clojure.lang.IPersistentList
; clojure.lang.ASeq}
(clojure.set/difference (ancestors clojure.lang.LazySeq) (ancestors clojure.lang.PersistentList))
; #{clojure.lang.IPending}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment