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 <andreas.koestler.le...@gmail.com>
>
>> 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 ^ints an-array
>>  idx
>>  ret
>>  (bit-xor (int 0)
>>             (aget ^ints another-array idx)))
>>
>> Works as expected. Does anyone know what's going on?
>> Clojure version is 1.3.0
>>
>> --
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clojure@googlegroups.com
>> Note that posts from new members are moderated - please be patient with
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>
>
>
>
> --
> 庄晓丹
> Email:        killme2...@gmail.com xzhu...@avos.com
> Site:           http://fnil.net
> Twitter:      @killme2008
>
>
>
>
>  --
> You received this message because you are subscribed to the Google
> Groups "Clojure" group.
> To post to this group, send email to clojure@googlegroups.com
> Note that posts from new members are moderated - please be patient with
> your first post.
> To unsubscribe from this group, send email to
> clojure+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/clojure?hl=en
>



-- 
**********************************************************
Andreas Koestler, Software Engineer
Leica Geosystems Pty Ltd
270 Gladstone Road, Dutton Park QLD 4102
Main: +61 7 3891 9772     Direct: +61 7 3117 8808
Fax: +61 7 3891 9336
Email: andreas.koest...@leica-geosystems.com

************www.leica-geosystems.com*************

when it has to be right, Leica Geosystems

Please  consider the environment before printing this email.

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to