I am a newbie in Haskell. Let says my program want to calculate something from this pattern of input:
a1 b1 c1
a2 b2 c2
...
16 b6 c6
The input contains 6 lines and each line has 3 numbers I want to get data as [(Integer, Integer, Integer)] but limit the length of the list to be only 6 before going to the calculation.
How could I do this? Also, how could I get a length from [(Integer, Integer, Integer)]
Thank you for your help
readFile
,splitOn
, andread
, and then post what you have as a question. - Reactormonk