Changes for clojure.core/long-array

shockbob on Sun, 21 Aug 2011
;; create a long array using long-array and show it can be used
;; with the standard Java Arrays functions binarySearch and fill
;; note the needed coercions

user=> (def is (long-array (range 3 20)))
#'user/is
user=> (vec is)
[3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19]
user=> (java.util.Arrays/binarySearch is (long 10))
7
user=> (java.util.Arrays/fill is 3 8 (long 99))
nil
user=> (vec is)
[3 4 5 99 99 99 99 99 11 12 13 14 15 16 17 18 19]
user=>
shockbob on Sun, 21 Aug 2011
;; create a long array using long-array and show it can be used
;; with the standard Java Arrays functions binarySearch and fill

user=> (def is (long-array (range 3 20)))
#'user/is
user=> (vec is)
[3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19]
user=> (java.util.Arrays/binarySearch is (long 10))
7
user=> (java.util.Arrays/fill is 3 8 (long 99))
nil
user=> (vec is)
[3 4 5 99 99 99 99 99 11 12 13 14 15 16 17 18 19]
user=>
shockbob on Sun, 21 Aug 2011
;; create a long array using long-array and show it can be used
;; with the standard Java Arrays functions binarySearch and fill

user=> (def is (long-array (range 3 20)))
#'user/is
user=> (vec is)
[3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19]
user=> (java.util.Arrays/binarySearch is 10)
7
user=> (java.util.Arrays/fill is 3 8 99)
nil
user=> (vec is)
[3 4 5 99 99 99 99 99 11 12 13 14 15 16 17 18 19]
user=>
shockbob on Sat, 20 Aug 2011
;; create an int array using int-array and show it can be used
;; with the standard Java Arrays functions binarySearch and fill

user=> (def is (int-array (range 3 20)))
#'user/is
user=> (vec is)
[3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19]
user=> (java.util.Arrays/binarySearch is 10)
7
user=> (java.util.Arrays/fill is 3 8 99)
nil
user=> (vec is)
[3 4 5 99 99 99 99 99 11 12 13 14 15 16 17 18 19]
user=>