Hi,
I'm trying to understand how the Html module works. I see many methods with
return type Html msg, which is a type alias for Node msg.
After tracking down the source code and reading into it, I am confused by
the following line:
type Node msg = Node
what is the purpose of the above
Yep, that makes perfect sense. I did not realize that in Elm all functions
take exactly one argument and return a result
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an
Hi,
I am having trouble understanding the -> syntax in elm.
For example
if we have the function:
plusTwo x = x + 2
it's type definition will be as follows:
: number -> number
this is pretty straight forward
however, if we have the function
add x y = x + y
its type definition is:
: