Safe Haskell | None |
---|---|
Language | Haskell2010 |
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.
- divideAndConquer :: ([a] -> [a] -> [a]) -> [a] -> [a] -> IO [a]
Types
Type-synonyms
Functions
:: ([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.