package orsetto

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

A submodule containing composers for elements indexed by position.

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

Use required m to compose a group element that requires a value matching the model m to be present in the sequence at the position at which it is bound in the group.

val optional : 'v model -> (element, 'v option) bind

Use optional m to compose a group element that admits an optional value matching the model m if present in the sequence at the position at which it is bound in the group.

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

Use default m v to compose a group element that admits an optional value matching the model m if present in the sequence at the position at which it is bound in the group, and if not present, then the scanner produces the default v for the element.