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

前端 未结 5 1471
悲&欢浪女
悲&欢浪女 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:21

    Explantion for javascript developers:

    --elm
    
    (a << b) x
    

    Will be similar

    //javasript
    
    a(b(x))
    

    << or >> is called function composition

提交回复
热议问题