Changes for clojure.core/subseq

zkim on Sun, 26 Sep 2010
;; Note, that collection passed to subseq must implement Sorted.  
;; Just passing a collection that has been sorted is not enough.

user=> (subseq [1 2 3 4] > 2)
java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.Sorted (NO_SOURCE_FILE:0)

user=> (subseq (sorted-set 1 2 3 4) > 2)
(3 4)
gstamp on Thu, 12 Aug 2010
Note, that collection passed to subseq must implement Sorted.  Just passing a collection that has been sorted is not enough.

user=> (subseq [1 2 3 4] > 2)
java.lang.ClassCastException: clojure.lang.PersistentVector cannot be cast to clojure.lang.Sorted (NO_SOURCE_FILE:0)

user=> (subseq (sorted-set 1 2 3 4) > 2)
(3 4)