From c0cdaace7bab2f36b06228e002d72ebf80c5254a Mon Sep 17 00:00:00 2001 From: "bringert@cs.chalmers.se" Date: Sun, 12 Nov 2006 23:29:04 +0000 Subject: [PATCH] Control.Parallel.Strategies: clarified documentation of parListChunk. --- Control/Parallel/Strategies.hs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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` -- 1.7.10.4