0
When writing a function what does the '-> String' bit do/mean?
3 Answers
+ 6
It defines the expected output data type. So if you wanted an integer for an output data type, you do:
-> Int
+ 1
It's a function that returns a String.
0
It means that the output type will be a String.