In the following code taken from Elm Form Example, line 122, what does the << operator mean?
Field.field Field.defaultStyle (Signal.send updat
My second attempt :D
<< vs <|The difference between << and <| is that << is used to compose functions and <| is used to omit parentheses.
Let's look at type annotation found here:
<< : (b -> c) -> (a -> b) -> a -> c
This definition tells us, that when you pass two functions to function <<, you will get function a -> c.
hi a =
a + 2
hello a =
a * 2
bye =
hello << hi
c =
bye 3
c returns value 10.