我在玩elm-css。 大部分事情都按照我的预期工作。 但我无法给Css.opacity函数一个正确的值。 这是我曾尝试: Css.opacity 0.5
这给错误: Function `opacity` is expecting the argument to be:
Css.Number compatible
But it is:
Float
的Css.Nu
我想写一个函数,返回Elm中的两个列表,但我遇到了问题。看起来编译器不能匹配空列表[]的类型。 import Html exposing (text)
main =
let
(a, b) = genList
in
text "Hello"
genList: List Float List Float
genList =
([], [])