You are viewing a single comment's thread. Return to all comments →
Yes, hello_worlds 1 = putStrLn "Hello World" is pattern matching. When the hello_words function is called with input 1, that is the executed line. However, in Haskell, the base of recursions are often expressed with a pattern match, so I think is fair to also say it's a stop condition.
hello_worlds 1 = putStrLn "Hello World"