package lambdapi
Proof assistant for the λΠ-calculus modulo rewriting
Install
dune-project
Dependency
Authors
Maintainers
Sources
lambdapi-2.2.0.tbz
sha256=920de48ec6c2c3223b6b93879bb65d07ea24aa27f7f7176b3de16e5e467b9939
sha512=135f132730825adeb084669222e68bc999de97b12378fae6abcd9f91ae13093eab29fa49c854adb28d064d52c9890c0f5c8ff9d47a9916f66fe5e0fba3479759
doc/src/lambdapi.lplib/option.ml.html
Source file option.ml
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40
open Base type 'a t = 'a option let is_None : 'a t -> bool = fun o -> match o with None -> true | Some _ -> false let get : 'a -> 'a option -> 'a = fun d o -> match o with None -> d | Some e -> e let map : ('a -> 'b) -> 'a t -> 'b t = fun f o -> match o with None -> None | Some e -> Some (f e) let map_default : ('a -> 'b) -> 'b -> 'a option -> 'b = fun f d o -> match o with None -> d | Some e -> f e let bind : ('a -> 'b t) -> 'a t -> 'b t = fun f o -> match o with None -> None | Some e -> f e let iter : ('a -> unit) -> 'a t -> unit = fun f o -> match o with None -> () | Some e -> f e let fold : ('a -> 'b -> 'a) -> 'a -> 'b option -> 'a = fun f a o -> match o with None -> a | Some b -> f a b let cmp : 'a cmp -> 'a option cmp = fun cmp_elt o o' -> match o, o' with | None, None -> 0 | None, Some _ -> -1 | Some _, None -> 1 | Some x, Some x' -> cmp_elt x x' let eq : 'a eq -> 'a option eq = fun eq_elt o1 o2 -> match o1, o2 with | None, None -> true | Some e1, Some e2 -> eq_elt e1 e2 | _ -> false let pp : 'a pp -> 'a option pp = fun elt ppf o -> match o with None -> () | Some e -> elt ppf e
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>