mirror of https://github.com/Wilfred/difftastic/
41 lines
386 B
Elm
41 lines
386 B
Elm
module Main exposing (blue, list, x, y)
|
|
|
|
|
|
list : List Int
|
|
list =
|
|
[ 1
|
|
, 2
|
|
, 3
|
|
, 4
|
|
]
|
|
|
|
|
|
blue : a -> String
|
|
blue =
|
|
\_ -> "blue"
|
|
|
|
|
|
green : String
|
|
green =
|
|
"yellow" ++ "blue"
|
|
|
|
|
|
x : Int
|
|
x =
|
|
(*) 2 <| 4
|
|
|
|
|
|
y : Int
|
|
y =
|
|
4 |> (*) 2
|
|
|
|
|
|
fn :
|
|
()
|
|
-> Int
|
|
-> List String
|
|
-> ()
|
|
-> String
|
|
fn () n strings () =
|
|
String.join (String.fromInt n) strings
|