Pair


Object Hierarchy:

Object hierarchy for Pair

Description:

public class Pair<A,B> : Object

An immutable pair of two values.

Pair is a Value Object: once created, its contents cannot change. Inspired by Kotlin's Pair.

Example:

    var pair = new Pair<string,string> ("key", "value");
assert (pair.first () == "key");
assert (pair.second () == "value");


Namespace: Vala.Collections
Package: Valacore

Content:

Creation methods:

Methods:

Inherited Members:

All known members inherited from class GLib.Object