This library defines an associative type which is like a Tuple
, except that you can also assess the elements using the keys (which need to be Symbol
s) given when the object was created.
Usage:
k = KeyTuples(:a => 1, :b => 2)
A similar, and more mature library is NamedTuples.jl.