Data.Bitstream.Generic

The type class

class Bitstream α

Introducing and eliminating Bitstreams

empty

(∅)

singleton

pack

unpack

Converting from/to Bits'

fromBits

fromNBits

toBits

Converting from/to Streams

stream

unstream

Basic interface

cons

cons'

snoc

append

(⧺)

head

last

tail

init

null

length

Transforming Bitstreams

map

reverse

Reducing Bitstreams

foldl

foldl'

foldl1

foldl1'

foldr

foldr1

Special folds

concat

concatMap

and

or

any

all

Building Bitstreams

scans

scanl

scanl1

scanr

scanr1

Replication

replicate

Unfolding

unfoldr

unfoldrN

Substreams

take

drop

takeWhile

dropWhile

span

break

Searching streams

elem

(∈)

(∋)

notElem

(∉)

(∌)

Searching with a predicate

find

filter

partition

Indexing streams

(!!)

elemIndex

elemIndices

findIndex

findIndices

Zipping and unzipping streams

zip

zip3

zip4

zip5

zip6

zipWith

zipWith3

zipWith4

zipWith5

zipWith6

unzip

unzip3

unzip4

unzip5

unzip6