package orsetto

  1. Overview
  2. Docs
A library of assorted structured data interchange languages

Install

Dune Dependency

Authors

Maintainers

Sources

r1.1.3.tar.gz
sha512=9b654edb663ae697563f150824047052f3b1bf760398f24bce6350553f031f73c46b6337239a1acd871e61238597ea92046809e3358290ff14d6ba671b449085

doc/orsetto.cf/Cf_data_render/Affix/index.html

Module Cf_data_render.Affix

A submodule containing affix operators the provide a convenient and idiosyncratic syntax for composing record and structure models.

val ($:) : 'r model -> ('v -> 'r) -> (element, 'v) bind

Use m $: f as an abbreviation of Element.required m f.

val ($?) : 'r model -> ('v -> 'r option) -> (element, 'v) bind

Use m $? f as an abbreviation of Element.optional m f.

val ($=) : 'r model -> 'r -> (element, 'v) bind

Use m $= v as an abbreviation of Element.constant m v.

val (%:) : ('k * 'r model) -> ('v -> 'r) -> ('k index, 'v) bind

Use m %: f as an abbreviation of Field.required m f.

val (%?) : ('k * 'r model) -> ('v -> 'r option) -> ('k index, 'v) bind

Use m %? f as an abbreviation of Field.optional m f.

val (%=) : ('k * 'r model) -> 'r -> ('k index, 'v) bind

Use m %= v as an abbreviation of Field.constant m v.

val (/=) : 'a model -> ('b -> 'a) -> 'b model

Use m /= f as an abbreviation of cast f m

OCaml

Innovation. Community. Security.