aboutsummaryrefslogtreecommitdiff
path: root/src/clojure/contrib/lazy_seqs.clj
diff options
context:
space:
mode:
authorTom Faulhaber <git_net@infolace.com>2009-05-04 05:34:00 +0000
committerTom Faulhaber <git_net@infolace.com>2009-05-04 05:34:00 +0000
commit86e90011e274910c618a5592d21ba3ce290a6855 (patch)
treef5bedd2f64d52b0050662f637b2d084a3c05356a /src/clojure/contrib/lazy_seqs.clj
parent870a47e859bdea719e253e8116f7da8b115594ce (diff)
Lots 'o doc strings
Diffstat (limited to 'src/clojure/contrib/lazy_seqs.clj')
-rw-r--r--src/clojure/contrib/lazy_seqs.clj23
1 files changed, 22 insertions, 1 deletions
diff --git a/src/clojure/contrib/lazy_seqs.clj b/src/clojure/contrib/lazy_seqs.clj
index 17ffd5c3..91b2e831 100644
--- a/src/clojure/contrib/lazy_seqs.clj
+++ b/src/clojure/contrib/lazy_seqs.clj
@@ -30,7 +30,28 @@
;; scgilardi (gmail)
;; Created 07 June 2008
-(ns clojure.contrib.lazy-seqs
+(ns
+ #^{:author "Stephen C. Gilardi",
+ :doc "==== 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 ====
+
+ (rotations, partition-all, shuffle, 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
+"}
+ clojure.contrib.lazy-seqs
(:use clojure.contrib.def))
; primes cannot be written efficiently as a function, because