elm/exercises/hello-world/HelloWorld.example.elm

11 lines
211 B
Elm

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