package mirage-block-combinators

  1. Overview
  2. Docs

Fold over the bytes of a block device

Parameters

module A : Mirage_block.S

Signature

val s : f:('a -> int64 -> Cstruct.t -> 'a Lwt.t) -> 'a -> A.t -> ('a, A.error) Stdlib.result Lwt.t

Folds f across blocks read sequentially from a block device