pair

Stores a name/value or first/second pair.

Target type

Signature

1pair(value = value)

Stores a name/value or first/second pair.

pair constructs or identifies a LaiRu value type. pair is useful when moving through groups of values. Prefer collection operations that match the shape of the data rather than converting everything to strings.

Parameters

value
Optional value. Supply value positionally unless the signature shows a keyword form.

Examples

Basic call

1pair('name' = 'Ada')
The example shows the normal call shape. Adapt variable names, validation, and surrounding error handling to the context.