On Jun 23, 2009, at 10:20 PM, CuppoJava wrote:
(range 0 :infinity 1)
From:
user=> (doc range)
-------------------------
clojure.core/range
([end] [start end] [start end step])
Returns a lazy seq of nums from start (inclusive) to end
(exclusive), by step, where start defaults to 0 and step to 1.
start defaults to 0 and step to 1, so it would be just:
(range :infinity)
or, using
(in-ns 'clojure.core)
(def +infinity Double/POSITIVE_INFINITY)
(def -infinity Double/NEGATIVE_INFINITY)
it would be:
(range +infinity)
These could also have shorter spellings:
(in-ns 'clojure.core)
(def +inf Double/POSITIVE_INFINITY)
(def -inf Double/NEGATIVE_INFINITY)
yielding:
(range +inf)
--Steve
smime.p7s
Description: S/MIME cryptographic signature
