I was given the slide below in a presentation to show how Julia creates dictionaries from TOML sections but I think it is incorrect unless I am not understanding , I would think the [SLS] section had two key value pairs and thus created one dictionary with two entries ?
The screenshot looks right, consistent with the TOML spec. [SLS.Core]
creates a Core
key under the SLS
map with another map as its value.
Thank you so much for helping - Do you know what the ex is in the REPL in this example or how I would write a function to call these from a TOML and then how to look at them in Julia like is being done here ?
The docs of TOML.jl show how to parse a TOML string in Julia. The ex
in your screenshot is a value produced by TOML.parse(s)
where s
is some string containing TOML data, or maybe TOML.tryparsefile(path)
where path
points to a toml-formatted file.
Thank you
1 Like