[Haskell-cafe] Seeking a small bug-fix for previously-posted code

Bulat Ziganshin bulatz at HotPOP.com
Sun Aug 14 18:17:22 EDT 2005


Hello Stefan,

Sunday, August 14, 2005, 2:05:00 PM, you wrote:

SH>  let format line = "[" ++ concat (intersperse "," (words line)) ++ "]"
SH>  return $ map (mkVec . read . format)  $ lines str -- CORRECTED

or just

return $ map (mkVec . map read . words)  $ lines str



-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list