package octez-libs

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

Enumerations, represented as a list of cases.

Parameters

module N : sig ... end

Signature

val switch_case : scalar repr -> 'a list repr -> 'a repr t

switch_case k l returns the k-th element of the list l if k ∈ [0,n) or the first element of l otherwise.

OCaml

Innovation. Community. Security.