1.2.0 permalink Arrow_down_16x16

DocString


==== Lazy sequences ====

primes - based on the "naive" implemention described in [1] plus a
small "wheel" which eliminates multiples of 2, 3, 5, and
7 from consideration by incrementing past them. Also inspired
by code from Christophe Grand in [2].

fibs - all the Fibonacci numbers

powers-of-2 - all the powers of 2

==== Lazy sequence functions ====

(partition-all, shuffle moved to clojure.core)
(rand-elt moved to clojure.core/rand-nth)
(rotations, rand-elt moved to seq_utils.clj)
(permutations and combinations moved to combinatorics.clj)

[1] http://www.cs.hmc.edu/~oneill/papers/Sieve-JFP.pdf
[2] http://clj-me.blogspot.com/2008/06/primes.html

Vars in clojure.contrib.lazy-seqs