package gsl

  1. Overview
  2. Docs
GSL - Bindings to the GNU Scientific Library

Install

Dune Dependency

Authors

Maintainers

Sources

gsl-1.24.0.tbz
sha256=6478374825b1da8b2589093d657ca0bf239df08e20b89561d4f469f4e69cbfd0
md5=3785e7b6a473e4fc9b2d6e24f5475be0

doc/src/gsl/misc.ml.html

Source file misc.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
(* gsl-ocaml - OCaml interface to GSL                       *)
(* Copyright (©) 2002-2012 - Olivier Andrieu                *)
(* Distributed under the terms of the GPL version 3         *)


let () = Error.init ()

let maybe_or_else o def = 
  match o with
  | None -> def
  | Some v -> v

let may vo f = 
  match vo with
  | None -> ()
  | Some v -> f v

let may_apply fo v =
  match fo with
  | None -> ()
  | Some f -> f v

let is = function
  | None -> false
  | Some _ -> true
OCaml

Innovation. Community. Security.