package ocaml-base-compiler

  1. Overview
  2. Docs
Official release 4.14.4

Install

dune-project
 Dependency

Authors

Maintainers

Sources

ocaml_4.14.4.tar.gz
sha256=71415c000ebfce604defafaa584ab5ed10ad81ff180897db4e6fea8dac6e4b0d

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:(function 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