package dune

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file bool.ml

1
2
3
4
5
6
7
8
9
10
type t = bool

let compare x y =
  match x, y with
  | true, true
  | false, false -> Ordering.Eq
  | true, false -> Gt
  | false, true -> Lt

let to_string = string_of_bool
OCaml

Innovation. Community. Security.