Skip to content
IsaacShelton edited this page Apr 8, 2022 · 8 revisions

Pair

Pair represents the type of a pair.

Specifications

Type Size Memory Management Model File
Pair ? bytes Scoped 2.6/Pair.adept
AsymmetricPair ? bytes Scoped 2.6/Pair.adept

Definition

struct <$T> Pair (first, second $T)
struct <$T, $S> AsymmetricPair (first $T, second $S)

where

$T and $S are any valid type

Fields

Name Type Description
first $T First item
second $T, $S Second item

Memory Management

Children are freed when they run out of scope.

Functions

  • func pair(first, second $T) <$T> Pair

    Constructs a Pair.

    [view src]

  • func asymmetricPair(first $T, second $S) <$T, $S> AsymmetricPair

    Constructs an AsymmetricPair.

    [view src]

Clone this wiki locally