From: bringert@cs.chalmers.se Date: Sun, 12 Nov 2006 23:29:04 +0000 (+0000) Subject: Control.Parallel.Strategies: clarified documentation of parListChunk. X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=c0cdaace7bab2f36b06228e002d72ebf80c5254a;p=haskell-directory.git Control.Parallel.Strategies: clarified documentation of parListChunk. --- diff --git a/Control/Parallel/Strategies.hs b/Control/Parallel/Strategies.hs index 5a057ac..72a8381 100644 --- a/Control/Parallel/Strategies.hs +++ b/Control/Parallel/Strategies.hs @@ -397,8 +397,10 @@ parListNth n strat xs where rest = drop n xs --- | Sequentially applies a strategy to chunks --- (sub-sequences) of a list in parallel. Useful to increase grain size. +-- | Splits a list into chunks (sub-sequences) of length @n@, +-- and applies a strategy sequentially to the elements in each +-- chunk. The chunks are evaluated in parallel. +-- This is useful for increasing the grain size. parListChunk :: Int -> Strategy a -> Strategy [a] parListChunk n strat [] = () parListChunk n strat xs = seqListN n strat xs `par`