package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 5.0.0

Install

Dune Dependency

Authors

Maintainers

Sources

5.0.0.tar.gz
sha256=72fa3d0ba19b82fcb9e6c62e0090b9d22e5905c4be0f94faf56904a9377a9e5b

doc/stdlib/Stdlib/StdLabels/index.html

Module Stdlib.StdLabelsSource

Standard labeled libraries.

This meta-module provides versions of the Array, Bytes, List and String modules where function arguments are systematically labeled. It is intended to be opened at the top of source files, as shown below.

  open StdLabels

  let to_upper = String.map ~f:Char.uppercase_ascii
  let seq len = List.init ~f:(fun i -> i) ~len
  let everything = Array.create_matrix ~dimx:42 ~dimy:42 42
Sourcemodule Array = ArrayLabels
Sourcemodule Bytes = BytesLabels
Sourcemodule List = ListLabels
Sourcemodule String = StringLabels
OCaml

Innovation. Community. Security.