https://github.com/tpapp/keytuples.jl
Tuple-like type with keys for accessing elements
https://github.com/tpapp/keytuples.jl
Last synced: 4 months ago
JSON representation
Tuple-like type with keys for accessing elements
- Host: GitHub
- URL: https://github.com/tpapp/keytuples.jl
- Owner: tpapp
- License: other
- Created: 2017-01-11T13:48:15.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-12-20T09:15:48.000Z (over 5 years ago)
- Last Synced: 2025-07-26T13:14:38.051Z (11 months ago)
- Language: Julia
- Size: 7.81 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# KeyTuples
[](http://www.repostatus.org/#wip)
[](https://travis-ci.org/tpapp/KeyTuples.jl)
[](https://coveralls.io/github/tpapp/KeyTuples.jl?branch=master)
[](http://codecov.io/github/tpapp/KeyTuples.jl?branch=master)
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:
```julia
k = KeyTuples(:a => 1, :b => 2)
```
A similar, and more mature library is [NamedTuples.jl](https://github.com/blackrock/NamedTuples.jl/blob/master/src/NamedTuples.jl).