Operations on tuples

Interface CopyableTuple

Method first

fn first() -> T

Method second

fn second() -> U

Method swap

fn swap() -> (U, T)

Interface ExtendedTupleOps

Method zip

fn zip() -> ~[(A, B)]

Method map

fn map<C>(f: &fn(a: &A, b: &B) -> C) -> ~[C]

Interface ImmutableTuple

Method first_ref

fn first_ref() -> &self /T

Method second_ref

fn second_ref() -> &self /U

Implementation of CopyableTuple<T, U> for (T, U)

Method first

fn first() -> T

Return the first element of self

Method second

fn second() -> U

Return the second element of self

Method swap

fn swap() -> (U, T)

Return the results of swapping the two elements of self

Implementation of ImmutableTuple<T, U> for (T, U)

Method first_ref

fn first_ref() -> &self /T

Method second_ref

fn second_ref() -> &self /U

Implementation of ExtendedTupleOps<A, B> for (&[A], &[B])

Method zip

fn zip() -> ~[(A, B)]

Method map

fn map<C>(f: &fn(a: &A, b: &B) -> C) -> ~[C]

Implementation of ExtendedTupleOps<A, B> for (~[A], ~[B])

Method zip

fn zip() -> ~[(A, B)]

Method map

fn map<C>(f: &fn(a: &A, b: &B) -> C) -> ~[C]