diff options
author | Rich Hickey <richhickey@gmail.com> | 2007-10-30 00:34:25 +0000 |
---|---|---|
committer | Rich Hickey <richhickey@gmail.com> | 2007-10-30 00:34:25 +0000 |
commit | d4de902fc7cdcafa0a2ab4c3d543253590e4e6b4 (patch) | |
tree | 4efed1cf0537db49f2cbb33ab80a9763a04d1781 /src | |
parent | c5542c2946f3ebdb81840c47d2134200a79ab332 (diff) |
added make-array
Diffstat (limited to 'src')
-rw-r--r-- | src/boot.clj | 6 |
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 )) |