Author | Message |
---|---|
dtang9
Posts: 52
|
Posted 14:09 Nov 17, 2019 |
For #4 part a, I was able to read the file and print the results, but not store them into a list. When my program reads the first line in the file, it stores the student into a list. For example: let list = [student1] Then it reads the second line, but I don't know how to store it into the same list again. I don't want this: let list = [student2] I want this: let list = [student1, student2] How do I produce a list of students? Last edited by dtang9 at
14:10 Nov 17, 2019.
|
LuisG72
Posts: 36
|
Posted 14:13 Nov 17, 2019 |
Same problem, was thinking of somehow recursively going through the list and appending them. Also how did you read the first line of the file. |
dtang9
Posts: 52
|
Posted 14:17 Nov 17, 2019 |
I followed Mark's example on GitHub. It's the second to last example in the haskell_lec10.hs file |
LuisG72
Posts: 36
|
Posted 14:34 Nov 17, 2019 |
Cool thx! |