import Htmlimport Listten:Intten=10-- Takes a function that takes an "a" and a "b" and returns a "c"-- ... then a "b"-- ... then an "a"-- ... and it returns a "c"-- It's a reimplementation of Basics.flip http://package.elm-lang.org/packages/elm-lang/core/5.1.1/Basics#flipflip:(a->b->c)->b->a->cflipfxy=fyxminus:Int->Int->Intminusxy=x-yunminus:Int->Int->Intunminus=flipminusfiveMinus:Int->IntfiveMinus=minus5minus5:Int->Intminus5=unminus5-- or-- minus5 = (flip minus) 5-- Takes a value of type "a"-- ... then an Int-- ... and it returns an List of the given length filled with that value-- List.repeat is documented here: http://package.elm-lang.org/packages/elm-lang/core/5.1.1/List#repeatrepeat2:a->Int->Listarepeat2=flipList.repeatrepeatFrog:Int->ListStringrepeatFrog=repeat2"frog"repeat5:Int->ListIntrepeat5=repeat25-- The <| operator is a handy alternative to a bunch of parentheses.main :Html.Htmlmsgmain =Html.text<|toString<|repeat5ten-- Here are some other "main"s to try out.-- You can only have one definition of "main" at a time, so you'll have to-- comment out the ones above.---- main = Html.text (toString (minus 1 2))-- main = Html.text (toString (minus ten 12))-- main = Html.text (toString (minus5 ten))