package bap-std

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

Install

Dune Dependency

Authors

Maintainers

Sources

v2.4.0.tar.gz
sha256=63ada71fa4f602bd679174dc6bf780d54aeded40ad4ec20d256df15886e3d2d5
md5=b8b1aff8c6846f2213eafc54de07b304

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

Module M.Fn

Various function combinators lifted into the Kleisli category.

val id : 'a -> 'a t

id x a monadic identity function

val ignore : 'a t -> unit t

ignore m computes m and discards the result.

val nothing : unit -> unit t

nothing is a computation that does nothing.

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

non f returns a negation of the function f.

val apply_n_times : n:int -> ('a -> 'a t) -> 'a -> 'a 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 t) -> ('a -> 'b t) -> 'a -> 'c t

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

OCaml

Innovation. Community. Security.