package bap-std

  1. Overview
  2. Docs
The Binary Analysis Platform Standard Library

Install

Dune Dependency

Authors

Maintainers

Sources

v2.1.0.tar.gz
sha256=631fc58628418e4856709a0cfc923a65e00c9494fbd28d444c633d11194831de
md5=3db9deac8d429b9b8a8ec9aec54987b1

doc/bap/Bap/Std/Bili/Make/argument-1-M/Fn/index.html

Module M.Fn

Various function combinators lifted into the Kleisli category.

val id : 'a -> ('a, 'e) t

id x a monadic identity function

val ignore : ('a, 'e) t -> (unit, 'e) t

ignore m computes m and discards the result.

val nothing : unit -> (unit, 'e) t

nothing is a computation that does nothing.

val non : ('a -> (bool, 'e) t) -> 'a -> (bool, 'e) t

non f returns a negation of the function f.

val apply_n_times : n:int -> ('a -> ('a, 'e) t) -> 'a -> ('a, 'e) t

apply_n_times ~n f creates a chaing of computation of size n made from applications of the same function to its own result.

val compose : ('b -> ('c, 'e) t) -> ('a -> ('b, 'e) t) -> 'a -> ('c, 'e) t

compose f g creates a composition f.g of two function.

OCaml

Innovation. Community. Security.