squeeze-1.0.4.8: A file-packing application.

Safe HaskellNone
LanguageHaskell2010

Squeeze.Control.Concurrent.DivideAndConquer

Contents

Description

AUTHOR
Dr. Alistair Ward
DESCRIPTION

Provides the capability to write two unevaluated lists to separate concurrent channels, read them both & merge the results into a single list, evaluating in parallel, lazily on demand.

Synopsis

Types

Type-synonyms

Functions

divideAndConquer Source

Arguments

:: ([a] -> [a] -> [a])

Merge-function, which reads from two channels, to produce a third.

-> [a]

Data for first channel.

-> [a]

Data for second channel.

-> IO [a] 

Writes the two unevaluated lists to separate concurrent channels, lazily reads them both (resulting in parallel evaluation) & merges them into a single results-list.