package lascar

  1. Overview
  2. Docs
A library for manipulating Labeled Transition Systems in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

lascar-0.6.0.tbz
sha256=343190b9c765655e787758db86a82818404dda18b4d2806283b4bde3ced91d26
sha512=2b6534ac438d574228d127b3b4e2cfec17b8b95e95124297c8da351caf34de2bb4ec8a31028a1470ba7f42aa932257293d021140a5a1c2642d1a60a8123d00a0

doc/src/lascar.utils/option.ml.html

Source file option.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
(**********************************************************************)
(*                                                                    *)
(*                              LASCAr                                *)
(*                                                                    *)
(*  Copyright (c) 2017-present, Jocelyn SEROT.  All rights reserved.  *)
(*                                                                    *)
(*  This source code is licensed under the license found in the       *)
(*  LICENSE file in the root directory of this source tree.           *)
(*                                                                    *)
(**********************************************************************)

let map f x = match x with None -> None | Some x -> Some (f x)

let iter f x = match x with None -> () | Some x -> f x

let to_string f x = match x with None -> "" | Some x -> f x
OCaml

Innovation. Community. Security.