-
-
Notifications
You must be signed in to change notification settings - Fork 9
Pair
IsaacShelton edited this page Mar 21, 2022
·
8 revisions
Pair represents the type of a pair.
| Type | Size | Memory Management Model | File |
|---|---|---|---|
Pair |
? bytes | Scoped | 2.6/Pair.adept |
AsymmetricPair |
? bytes | Scoped | 2.6/Pair.adept |
struct <$T> Pair (first, second $T)
struct <$T, $S> AsymmetricPair (first $T, second $S)
where
$T and $S are any valid type
| Name | Type | Description |
|---|---|---|
first |
$T |
First item |
second |
$T, $S
|
Second item |
Children are freed when they run out of scope.
-
func pair(first, second $T) <$T> PairConstructs a
Pair. -
func asymmetricPair(first $T, second $S) <$T, $S> AsymmetricPairConstructs an
AsymmetricPair.