<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<div name="messageBodySection">Hello,<br />
I'm trying to use Data.Conduit, but I get stuck with mapAccum as how to get and retrieve the result.<br />
If I use it, I get a simple conduit like :<br />
<br />
testC :: ConduitM () Int IO Int<br />
testC = Src =$= cdt where<br />
src = CL.sourceList [1..10]<br />
cdt = CL.mapAccum (\x s -> (x+s, x) 0<br />
<br />
I can get the output with<br />
testC $$ CL.consume<br />
but how do I retrieve the accumulated sum ?<br />
<br />
Bruno</div>
<div name="messageSignatureSection"><br /></div>
</body>
</html>