0

When writing a function what does the '-> String' bit do/mean?

31st Mar 2017, 10:47 AM
Matt
Matt - avatar
3 odpowiedzi
+ 6
It defines the expected output data type. So if you wanted an integer for an output data type, you do: -> Int
1st Apr 2017, 1:22 PM
@bayoishola20
+ 1
It's a function that returns a String.
31st Mar 2017, 1:29 PM
Álvaro
0
It means that the output type will be a String.
19th Apr 2017, 10:49 AM
JOSE H. LEON
JOSE H. LEON - avatar