package kappa-library

  1. Overview
  2. Docs
Public internals of the Kappa tool suite. Use this package to use kappa as a lib

Install

Dune Dependency

Authors

Maintainers

Sources

v4.1.3.tar.gz
md5=1c9a8a0d79f085757817f90834e166f5
sha512=13ac40442940ba6e72d7dc5bf952e67443872f7bff63e9c76a3a699a6904c88696047fe04519b7ec6546371642f6ee7b0983117be302694aca15500b0df40de3

doc/src/kappa-library.generic/genArray.ml.html

Source file genArray.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
(******************************************************************************)
(*  _  __ * The Kappa Language                                                *)
(* | |/ / * Copyright 2010-2020 CNRS - Harvard Medical School - INRIA - IRIF  *)
(* | ' /  *********************************************************************)
(* | . \  * This file is distributed under the terms of the                   *)
(* |_|\_\ * GNU Lesser General Public License Version 3                       *)
(******************************************************************************)

(** Signature of array only limited by max_int *)

module type GenArray = sig
  type 'a t

  val create : int -> 'a -> 'a t
  val length : 'a t -> int
  val get : 'a t -> int -> 'a
  val set : 'a t -> int -> 'a -> unit
  val init : int -> (int -> 'a) -> 'a t
  val make : int -> 'a -> 'a t
  val append : 'a t -> 'a t -> 'a t
  val concat : 'a t list -> 'a t
  val sub : 'a t -> int -> int -> 'a t
  val copy : 'a t -> 'a t
  val fill : 'a t -> int -> int -> 'a -> unit
  val of_list : default:'a -> 'a list -> 'a t
  val iter : ('a -> unit) -> 'a t -> unit
  val iteri : (int -> 'a -> unit) -> 'a t -> unit
  val blit : 'a t -> int -> 'a t -> int -> int -> unit
  val fold_lefti : (int -> 'b -> 'a -> 'b) -> 'b -> 'a t -> 'b
  val fold_righti : (int -> 'a -> 'b -> 'b) -> 'a t -> 'b -> 'b
  val map : ('a -> 'b) -> 'a t -> 'b t

  val print :
    ?trailing:(Format.formatter -> unit) ->
    (Format.formatter -> unit) ->
    (int -> Format.formatter -> 'a -> unit) ->
    Format.formatter ->
    'a t ->
    unit
end
OCaml

Innovation. Community. Security.