Hi all,
I'm experiencing the following problem:
(def an-array (byte-array 200 (byte 1)))
(amap ^bytes an-array
idx
ret
(bit-xor (byte 0)
(aget ^bytes an-array idx)))
Resulting in:
No matching method found: aset
Wheras this:
(def another-array (int-array 200 (int 1)))
(amap
Because bit-xor returns a integer,so you have to cast it to byte:
(amap ^bytes an-array
idx
ret
(byte (bit-xor (byte 0)
(aget ^bytes an-array idx
2012/2/17 Andreas Kostler andreas.koestler.le...@gmail.com
Hi all,
I'm experiencing the following problem:
(def an-array
How stupid of me.
Cheers
On 17 February 2012 12:12, dennis zhuang killme2...@gmail.com wrote:
Because bit-xor returns a integer,so you have to cast it to byte:
(amap ^bytes an-array
idx
ret
(byte (bit-xor (byte 0)
(aget ^bytes an-array idx
2012/2/17 Andreas Kostler