summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRich Hickey <richhickey@gmail.com>2007-10-30 00:34:25 +0000
committerRich Hickey <richhickey@gmail.com>2007-10-30 00:34:25 +0000
commitd4de902fc7cdcafa0a2ab4c3d543253590e4e6b4 (patch)
tree4efed1cf0537db49f2cbb33ab80a9763a04d1781
parentc5542c2946f3ebdb81840c47d2134200a79ab332 (diff)
added make-array
-rw-r--r--src/boot.clj6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/boot.clj b/src/boot.clj
index d3b1e933..5401fb4e 100644
--- a/src/boot.clj
+++ b/src/boot.clj
@@ -684,8 +684,8 @@
(. Array (setByte array idx (byte val)))
val)
-(defn int-array [len]
- (. Array (newInstance (. Integer TYPE) (int len))))
+(defn make-array [type len]
+ (. Array (newInstance type (int len))))
(import '(java.util.concurrent Executors LinkedBlockingQueue))
@@ -761,6 +761,6 @@
time
int long float double short byte boolean
aget aset aset-boolean aset-int aset-long aset-float aset-double aset-short aset-byte
- int-array
+ make-array
))