This module helps generate operators!
So, this
Elm.Op.equal (Elm.bool True) (Elm.bool False)Would generate
True == False/=
&&
||
++
::
+
-
*
/
//
The to-the-power-of operator ^
<
>
<=
>=
|>
Elm.value
{ importFrom = []
, name = "thang"
, annotation = Nothing
}
|> Elm.Op.pipe (Elm.value "thang2")
|> Elm.Op.pipe (Elm.value "thang3")Results in
thang
|> thang2
|> thang3<|
Wrap an expression in parentheses.
Generally you won't need this as elm-codegen handles parens for you, but it can be useful to semantically group operations from this module.
used in the elm/parser library
|=
|.
</> used in url parsing
<?> used in url parsing
==