1
0
Fork 0
mirror of https://github.com/correl/elm.git synced 2025-04-08 09:11:01 -09:00

Merge pull request from exercism/default-snippet

Add default introductory code example
This commit is contained in:
Katrina Owen 2017-09-01 16:34:43 -06:00 committed by GitHub
commit 243915c4eb

10
docs/SNIPPET.txt Normal file
View file

@ -0,0 +1,10 @@
module HelloWorld exposing (..)
helloWorld : Maybe String -> String
helloWorld name =
case name of
Just name ->
"Hello, " ++ name ++ "!"
Nothing ->
"Hello, World!"