<~ in elm 0.16.0 gives me a compile time error

2020-04-11 04:48发布

问题:

Very new to Elm but wanted to play around with the <~ operator. It seems when I run elm-make, <~ it is not recognized as an operator, and I get the error

Cannot find variable <~

Has this been deprecated ( I see it in the docs at elm-lang.org/docs/syntax#mapping ). Am I just using it incorrectly? Here is my code snippet that will not compile-

sqrtSig : Signal number
sqrtSig = sqrt <~ Mouse.x

回答1:

Yes, <~ and ~ were removed following this discussion



标签: elm