An open API service indexing awesome lists of open source software.

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.

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)
```