Skip to content
CCPEDIAby Unity Nodes
Documentation/Canton Network Docs/Daml Standard LibraryModulesView on Canton Network Docs

DA.NonEmpty.Types

Daml module

DA.NonEmpty.Types

This module contains the type for non-empty lists so we can give it a stable package id.

Data Types

data NonEmpty a

NonEmpty is the type of non-empty lists. In other words, it is the type of lists that always contain at least one element. If x is a non-empty list, you can obtain the first element with x.hd and the rest of the list with x.tl. Constructors:
  • NonEmpty
hd
a
tl
[a]
Instances:

History

Updated3.5.1

Module declarations or documentation updated.