FYI, in #clojure, duck11232 suggested the following which works for me.

(defn arr= [a b] (not (or (< a b) (> a b))))

On Tue, Sep 18, 2012 at 4:54 PM, Andrew <ache...@gmail.com> wrote:

> In my ClojureScript unit tests, the following doesn't evaluate to true (=
> (array 1 2) (foo)) even though all foo does is return (array 1 2).
>
> What should I do differently?
>
> On Tuesday, January 10, 2012 2:51:06 PM UTC-5, David Nolen wrote:
>>
>> There is no array literal syntax yet, but (array 22 33) should work for
>> you.
>>
>> On Tue, Jan 10, 2012 at 2:46 PM, billh2233 <bill....@gmail.com> wrote:
>>
>>> How do I code an array literal in clojurescript that translates to an
>>> array literal in javascript? What's the syntax?
>>>
>>> If I code in clojurescript:
>>>     ... [22 33] ...
>>> it translates to a javascript vector:
>>>     cljs.core.Vector.fromArray([**22,33])
>>>
>>> Javascript (fx/Animation) needs an array defining an X Y point and
>>> complains that this parameter is not an array.
>>>
>>> Thanks.
>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Clojure" group.
>>> To post to this group, send email to clo...@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+u...@**googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/**group/clojure?hl=en<http://groups.google.com/group/clojure?hl=en>
>>
>>
>>  --
> 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

-- 
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