Pair-class: A pair container similar to C++ std::pair

Description Fields Methods Note Author(s) Examples

Description

A pair container similar to C++ std::pair

Fields

first

(ANY), the first value of the pair

second

(ANY), the second value of the pair

Methods

swap(pr)

Exchanges the contents of two pairs

Note

Date of last modification: 09.09.2015

Change history: none

Author(s)

Roman Pahl

Examples

1
2
3
4
5
p1 <- Pair("foo", 1)
p2 <- Pair(2, "bar")
p1$first # "foo"
p1$swap(p2)
p1$first # 2

rpahl/Squash documentation built on May 28, 2019, 12:35 a.m.