You are viewing a single comment's thread. Return to all comments →
how do you know how many lines to read? In a situation where a user is inputting a variable set of inputs, would this work?
If you run this it will just ask for inputs forever.
also, I think that you don't need to define your own read if your run function has a definition run :: [Int] -> [String]
run :: [Int] -> [String]
Functions or Not?
You are viewing a single comment's thread. Return to all comments →
how do you know how many lines to read? In a situation where a user is inputting a variable set of inputs, would this work?
If you run this it will just ask for inputs forever.
also, I think that you don't need to define your own read if your run function has a definition
run :: [Int] -> [String]