本文介绍了<〜在Elm 0.16.0中给我一个编译时错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对Elm来说是新手,但想和<〜运算符一起玩。看来当我运行elm-make,<〜时,它不被识别为运算符,并且出现错误

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

是否已弃用(我在)。我使用不正确吗?这是我的代码片段,不会编译-

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


推荐答案

是,< 〜 (遵循)

Yes, <~ and ~ were removed following this discussion

这篇关于&lt;〜在Elm 0.16.0中给我一个编译时错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-16 10:01