I have stumbled across an odd thing with (/=) operator. 1 /= 0 produces 1 and 1 /= 1 produces False. (==) works as expected with Boolean. See the Logs in the referenced ellie.
Seeing this with Elm 0.19, latest Chrome on a Mac. Is this a known issue?
---- Elm 0.19.1 ----------------------------------------------------------------
Say :help for help and :exit to exit! More at <https://elm-lang.org/0.19.1/repl>
--------------------------------------------------------------------------------
> 1/=0
True : Bool
> 1/=1
False : Bool
Quoting Evan Czaplicki:
For the record, this is due to an optimization that relied on truthiness in JS.