def Instant.is_eq

bend-time-lib@0.4.0.1 · instant.bend:63

import bend-time-lib@0.4.0.1/instant.bend as Instant
import Base

63def Instant.is_eq(a: Instant, b: Instant) -> Bool:
64  match a b:
65    case Instant{+d1, +s1, +n1} Instant{+d2, +s2, +n2}:
66      Bool.and(
67        U32.is_eq(d1, d2),
68        Bool.and(U32.is_eq(s1, s2), U32.is_eq(n1, n2))
69      )

Uses (4)

Used by (1)