Elm Exactly

Derived formor

Stated in ADerived Forms, under Expressions exp\expm.

Derived Form\textnormal{Derived Form}Equivalent Form\textnormal{Equivalent Form}
exp1 || exp2\expm_1\ \kw{||}\ \expm_2if exp1 then Basics.True else exp2\kw{if}\ \expm_1\ \kw{then}\ \kw{Basics.True}\ \kw{else}\ \expm_2
Read it in its chapter·Permanent address: /standard/derived-forms/or

Tests (3)

  • elm / BoolOrTest
    The `||` operator gives `False` only when both operands are `False`, checked over all four combinations.
  • elm / InfixPrecAndOverOrTest
    `&&` (precedence 3) binds more tightly than `||` (precedence 2).
  • elm / InfixPrecOrOverPipeTest
    `||` (precedence 2) binds more tightly than `|>` (precedence 0).

Discussions

Discuss this derived form·Search the discussions on GitHub

Discussions are on GitHub; one about this derived form has [df:or] in its title.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.