Reputation: 985
How to convert an Int
value to a String
?
Upvotes: 2
Views: 343
Reputation: 985
Elm makes this very easy with String.fromInt
.
For example
String.fromInt 5 -- returns "5"
A great tool to find answers to this is elm-search. Just search for Int -> String
or any other type signature for similar questions.
Upvotes: 4