Elm Exactly

Derived formand

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 exp2 else Basics.False\kw{if}\ \expm_1\ \kw{then}\ \expm_2\ \kw{else}\ \kw{Basics.False}
Read it in its chapter·Permanent address: /standard/derived-forms/and

Tests (4)

  • elm / BoolAndTest
    The `&&` operator gives `True` only when both operands are `True`, checked over all four combinations.
  • elm / InfixNonAssocSeparatedLegalTest
    Two non-associative operators of equal precedence may share a chain when an operator of lower precedence stands between them.
  • elm / InfixPrecAndOverOrTest
    `&&` (precedence 3) binds more tightly than `||` (precedence 2).
  • elm / InfixPrecCompareOverAndTest
    `<` (precedence 4) binds more tightly than `&&` (precedence 3).

Discussions

Discuss this derived form·Search the discussions on GitHub

Discussions are on GitHub; one about this derived form has [df:and] 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.