On Jul 1, 1:41 pm, David Nolen <[email protected]> wrote:
> On Fri, Jul 1, 2011 at 4:04 PM, Chouser <[email protected]> wrote:
> > (defn f [xs] (every? true? (map = xs (iterate inc 1))))
>
> > --Chouser
>
> Also,
>
> (defn f [xs] (every? #{1} (map - xs (iterate inc 0))))
This has problems before 1.3 if you go beyond Integer/MAX_VALUE:
(#{1} (- (long 1) (long 0))) ;; nil
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to [email protected]
Note that posts from new members are moderated - please be patient with your
first post.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en