package alba

  1. Overview
  2. Docs
Alba compiler

Install

Dune Dependency

Authors

Maintainers

Sources

0.4.1.tar.gz
sha256=439b1dce07c86e914d1ebf1712c5581418314b0c8d13594f27a698b1d25fe272
md5=5cf58d4ed4eacbe6f330e9d2378ef5c6

doc/alba.fmlib/Fmlib/Common/Interval/index.html

Module Common.Interval

val find : (int -> bool) -> int -> int -> int

find p start beyond returns i with start <= i < beyond and p i or i = beyond if no index in the interval satisfies the predicate p.

val fold : 'a -> (int -> 'a -> 'a) -> int -> int -> 'a

fold a f start beyond starts with value a and folds the function f over the interval start..beyond.

fold a f start beyond =

     f (beyond - 1) (...  (f (start+1) (f start a))) 
module Monadic (M : Module_types.MONAD) : sig ... end
OCaml

Innovation. Community. Security.