# API for lazy-seqs
- ()

by Stephen C. Gilardi

### clojure-contrib is now deprecated

clojure-contrib is no longer being developed or maintained.

Rather than a single, monolithic, contributions library, Clojure now has
a set of separate libraries for each unit of functionality. The libraries
are in the Clojure GitHub organization at
https://github.com/clojure.
API documentation of the libraries can be found at
http://clojure.github.io.

If you're looking for a specific function or namespace from the old
clojure-contrib, see
"Where Did Clojure.Contrib Go".

Full namespace name:

clojure.contrib.lazy-seqs
## Overview

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

## Public Variables and Functions

## fibs

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (fibs)

Returns a lazy sequence of all the Fibonacci numbers.

Source

## powers-of-2

function
This library, clojure-contrib, is deprecated. See here for more information.
Usage: (powers-of-2)

Returns a lazy sequence of all the powers of 2

Source

## primes

var
This library, clojure-contrib, is deprecated. See here for more information.
Lazy sequence of all the prime numbers.

Source