mirror of
https://github.com/correl/elm.git
synced 2024-12-23 03:00:08 +00:00
Merge pull request #159 from exercism/default-snippet
Add default introductory code example
This commit is contained in:
commit
243915c4eb
1 changed files with 10 additions and 0 deletions
10
docs/SNIPPET.txt
Normal file
10
docs/SNIPPET.txt
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
module HelloWorld exposing (..)
|
||||||
|
|
||||||
|
helloWorld : Maybe String -> String
|
||||||
|
helloWorld name =
|
||||||
|
case name of
|
||||||
|
Just name ->
|
||||||
|
"Hello, " ++ name ++ "!"
|
||||||
|
|
||||||
|
Nothing ->
|
||||||
|
"Hello, World!"
|
Loading…
Reference in a new issue