diff options
| author | Rich Hickey <richhickey@gmail.com> | 2008-08-25 20:16:20 +0000 |
|---|---|---|
| committer | Rich Hickey <richhickey@gmail.com> | 2008-08-25 20:16:20 +0000 |
| commit | 2e9afaecf3623ea89002c8cd66d6a61b1e8a2bc5 (patch) | |
| tree | 5b27af5a9400c70ad79a1c9ff6899c770c1cf734 /src/clj | |
| parent | 8cb1bd3dc18b5379e5da87fd18de829d35f75a28 (diff) | |
removed implicit seq for Iterators and Enumerations, added iterator-seq and enumeration-seq explicit constructors
Diffstat (limited to 'src/clj')
| -rw-r--r-- | src/clj/clojure/boot.clj | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/clj/clojure/boot.clj b/src/clj/clojure/boot.clj index 35efe753..73380c2f 100644 --- a/src/clj/clojure/boot.clj +++ b/src/clj/clojure/boot.clj @@ -2929,3 +2929,14 @@ (recur (conj s x) etc)) true)) false))) + +(defn iterator-seq + "Returns a seq on a java.util.Iterator. Note that most collections + providing iterators implement Iterable and thus support seq directly." + [iter] + (clojure.lang.IteratorSeq/create iter)) + +(defn enumeration-seq + "Returns a seq on a java.lang.Enumeration" + [e] + (clojure.lang.EnumerationSeq/create e)) |
