package coq-core

  1. Overview
  2. Docs
The Coq Proof Assistant -- Core Binaries and Tools

Install

Dune Dependency

Authors

Maintainers

Sources

coq-8.20.0.tar.gz
md5=66e57ea55275903bef74d5bf36fbe0f1
sha512=1a7eac6e2f58724a3f9d68bbb321e4cfe963ba1a5551b9b011db4b3f559c79be433d810ff262593d753770ee41ea68fbd6a60daa1e2319ea00dff64c8851d70b

doc/coq-core.clib/Memprof_coq/Resource_bind/index.html

Module Memprof_coq.Resource_bindSource

Open Memprof_limits.Resource_bind to enable the let& binder for resources.

Sourceval (let&) : (scope:('a -> 'b) -> 'b) -> ('a -> 'b) -> 'b

RAII-style notation for resources cleaned-up at the end of scope. Example:

open Memprof_limits.Resource_bind

  let with_my_resource x =
    Memprof_limits.Masking.with_resource ~acquire x ~release

  let f x =
    let& resource = with_my_resource x in
    …
OCaml

Innovation. Community. Security.