https://github.com/nampdn/dictdotdot.jl
Simple Julia package for setting keys in a `Dict` using dotted string.
https://github.com/nampdn/dictdotdot.jl
Last synced: 4 months ago
JSON representation
Simple Julia package for setting keys in a `Dict` using dotted string.
- Host: GitHub
- URL: https://github.com/nampdn/dictdotdot.jl
- Owner: nampdn
- License: mit
- Created: 2020-06-05T02:15:07.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T08:44:27.000Z (over 2 years ago)
- Last Synced: 2025-02-08T07:43:41.983Z (over 1 year ago)
- Language: Julia
- Size: 7.81 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DictDotDot.jl
Simple Julia package for setting keys in a `Dict` using dotted string.
## Basic Usage
```julia
using DictDotDot
# Defind a single Dict
dict = Dict()
# Dict{Any, Any}
# Mutating the dict with nested key
dotset!(dict, "greeting.message", "Hello World!")
# ("greeting" => Dict{Any,Any}("message" => "Hello World!"))
```
## Documentation
```julia
dotset!(dict::Dict, dottedkey::String, value::Any)
```