Files
rose-ash/lib
giles 4d32c80a99
Some checks failed
Test, Build, and Deploy / test-build-deploy (push) Failing after 50s
ocaml: phase 6 Bool module + Option.equal/Option.compare (+5 tests, 584 total)
Bool module:
  equal a b      = a = b
  compare a b    = 0 if equal, 1 if a, -1 if b (false < true)
  to_string      'true' / 'false'
  of_string s    = s = 'true'
  not_           wraps host not
  to_int         true=1, false=0

Option additions (take eq/cmp parameter for the inner value):
  equal eq a b   None=None, otherwise eq the inner values
  compare cmp a b  None < Some _; otherwise cmp inner

  Option.equal (=) (Some 1) (Some 1)        = true
  Option.equal (=) (Some 1) None             = false
  Option.compare compare (Some 5) (Some 3)  = 1
2026-05-09 06:26:33 +00:00
..