Elm 的 (<~) 功能去哪儿了?不再在信号模块中
Where did Elm's (<~) function go? No longer in Signal module
我正在查看 http://elm-by-example.org tutorials. import Signals exposing ((<~))
no longer works in elm-lang/core 3.0.0, and I see in the Elm package documentation,发现此功能已从信号模块中删除。它去哪儿了?
这是完整的类型签名:
(<~) : (a -> b) -> Signal a -> Signal b
(<~)
根据 changelog, because Elm generally discourages infix operators. See also original proposal 从 Elm 0.16 中删除,以弃用 (<~)
和 (~)
.
您仍然可以找到 (<~)
and (~)
in Apanatshka's elm-signal-extra
图书馆。
我正在查看 http://elm-by-example.org tutorials. import Signals exposing ((<~))
no longer works in elm-lang/core 3.0.0, and I see in the Elm package documentation,发现此功能已从信号模块中删除。它去哪儿了?
这是完整的类型签名:
(<~) : (a -> b) -> Signal a -> Signal b
(<~)
根据 changelog, because Elm generally discourages infix operators. See also original proposal 从 Elm 0.16 中删除,以弃用 (<~)
和 (~)
.
您仍然可以找到 (<~)
and (~)
in Apanatshka's elm-signal-extra
图书馆。