mirror of
https://github.com/correl/elm.git
synced 2025-04-08 09:11:01 -09: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…
Add table
Reference in a new issue