[Haskell-cafe] Data import from octave / text file
Claude Heiland-Allen
claude at goto10.org
Wed Jun 15 13:32:35 CEST 2011
Hi,
On 15/06/11 12:13, kaffeepause73 wrote:
> let m = read text :: [[Double]]
> signalImport: Prelude.read: no parse
read :: String -> [[Double]] -- expects Haskell syntax
try something like:
parse :: String -> [[Double]] -- expects plainer syntax
parse = map (map read . words) . lines
Claude
--
http://claudiusmaximus.goto10.org
More information about the Haskell-Cafe
mailing list