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

12 lines
211 B
Elm
Raw Permalink Normal View History

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