diff options
| author | Rich Hickey <richhickey@gmail.com> | 2007-12-18 18:14:30 +0000 |
|---|---|---|
| committer | Rich Hickey <richhickey@gmail.com> | 2007-12-18 18:14:30 +0000 |
| commit | b876bc01060191c4fecef062bdddd190c79fd83f (patch) | |
| tree | 80a02e9b2a2db062fddebbddf73f81ca8c362f29 /src/boot.clj | |
| parent | 563ce9095b9b2610a845123dec1d8e2884177aa0 (diff) | |
added subvec
Diffstat (limited to 'src/boot.clj')
| -rw-r--r-- | src/boot.clj | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/boot.clj b/src/boot.clj index 3f9a27bd..8094e2b3 100644 --- a/src/boot.clj +++ b/src/boot.clj @@ -913,6 +913,13 @@ (defn accessor [s key] (. clojure.lang.PersistentStructMap (getAccessor s key))) +(defn subvec + ([v start] + (thisfn v start (count v))) + ([v start end] + (. clojure.lang.RT (subvec v start end)))) + + (def *exports* '(clojure load-file eql-ref? @@ -958,5 +965,6 @@ bit-shift-left bit-shift-right bit-and bit-or bit-xor bit-not defstruct struct accessor create-struct + subvec )) |
