File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -882,8 +882,8 @@ palindrome
882882palindrome
883883```
884884
885- Again, we get the same output as if we had run our program and put in the words ourselves at the standard input.
886- We just don' t see the input that ` palindromes.hs ` because the input came from the file and not from us typing the words in .
885+ Again, we get the same output as if we had run the program and typed the words ourselves at standard input.
886+ The difference is that we don’ t see the input, because it was provided to ` palindromes.hs ` from a file rather than entered directly at the keyboard .
887887
888888So now you probably see how lazy I/O works and how we can use it to our advantage.
889889You can just think in terms of what the output is supposed to be for some given input and write a function to do that transformation.
@@ -1275,9 +1275,9 @@ Here's a small program that demonstrates how these two work:
12751275
12761276``` {.haskell:hs}
12771277import System.Environment
1278- import Data.List
1278+ import Data.List
12791279
1280- main = do
1280+ main = do
12811281 args <- getArgs
12821282 progName <- getProgName
12831283 putStrLn "The arguments are:"
You can’t perform that action at this time.
0 commit comments