What does the `<<` operator mean in elm?

前端 未结 5 1472
悲&欢浪女
悲&欢浪女 2021-01-30 12:24

In the following code taken from Elm Form Example, line 122, what does the << operator mean?

Field.field Field.defaultStyle (Signal.send updat         


        
5条回答
  •  抹茶落季
    2021-01-30 13:16

    It is function composition. For your concrete example it means

    \x -> (Signal.send updateChan (toUpdate x))
    

    In elm it's not a part of the syntax but part of the standard library: Basics.<<

提交回复
热议问题