-
-
Notifications
You must be signed in to change notification settings - Fork 9
Pair
IsaacShelton edited this page Nov 13, 2022
·
8 revisions
Pair
represents the type of a pair.
Type | Size | Memory Management Model | File |
---|---|---|---|
Pair |
? bytes | Scoped | 2.7/Pair.adept |
AsymmetricPair |
? bytes | Scoped | 2.7/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> Pair
Constructs a
Pair
. -
func asymmetricPair(first $T, second $S) <$T, $S> AsymmetricPair
Constructs an
AsymmetricPair
.