Esc

equal

procedureextensionsince 0.36.1Source
  • macOS: equal works on macOS
  • Linux: equal works on Linux
  • Windows: equal works on Windows
  • Wasm: equal works on Wasm

Tests value equality consistent with compare and hash; Zoned ignores its zone.

Signature

equal :: (
    a: $T/ .[Date, Time_Of_Day, Date_Time, Timestamp, Signed_Duration, Offset, Time_Zone, Zoned],
    b: T
) -> bool
Example↗
a, _ := timestamp_from_seconds(5);
b, _ := timestamp_from_seconds(5);
assert(equal(a, b));

See also