RosettaCodeData/Task/Reverse-a-string/Elm/reverse-a-string.elm

18 lines
356 B
Elm

module Main exposing (main)
import Html exposing (Html, text, div, p)
import Html.Attributes exposing (style)
change myText =
text ("reverse " ++ myText
++ " = " ++ String.reverse myText)
main =
div [style "margin" "5%", style "font-size" "1.5em"]
[change "asda"
, p [] [change "asu-asu"]
, p [] [change "Hello!"]
]