« first day (1216 days earlier)      last day (319 days later) » 

12:58 AM
Howdy folks.  Does ngn/k support working over dictionaries like kona?  the following doesn't work and I can't find any docs on the subject in the ngn/k repo:

```
\d test
a: 1
b: 2
c: 3
\d ^

tot: +/test[]
```

ngnk test.k
```
'value
 tot: +/test[]
         ^
```
 
 
5 hours later…
5:42 AM
I might be getting my dialects mixed, but if you want to sum the values, I think it's +/ . test
 
5:58 AM
I also think it’s \d . to get back to the root namespace.
 
tried both suggestions, same error
is there some place I can look for reference?
 
If you're using repl.k, there is the help `. In particular \v`. When I do that I see that test.a is defined, but I don't see tests defined as a dictionary. I'd have to look at the code to better understand how this works.
It looks like there might not be an actual "K tree" per se, but rather just a way to make variables with dots in their names.
That markup didn't work like I wanted... It should be \ for help and ``\v``` for variables.
 
``\``
``\v``
apparently test simply does not exist on its own
 
Ugh.. I'm a mess. What @Bubbler said...
@Bubbler In K2 there was a root dictionary named . and all variable names existed in that. If you used \d then you would be attached to a subtree of that.
 
6:15 AM
Experts are mostly active in the linked Discord and Matrix rooms, so you may have better luck there
 
I forget what happened if you had a variable named test and then tried to make a namespace named test. Perhaps the latter replaced the former.
 
In K2?
In ngn/k it looks like \d is just a fancy way to get dots into names.
At least it saves you from having to write the prefix over and over in a library.
 
in ngn/k, since the original question was about it
 
Yeah, I think the answer to the immediate question is a simple no.
 
7:14 AM
Yeah, \d doesn't do anything but establish a prefix to be used for all names in assignment. AQ(bsd,P(!*s,aCz(gp))s+=*s=='.';Nn=Sn(s);P(n+2>SZ(gp),ez0())Mc(gp,s,n+1);au)
I don't know of any true inspection beyond what's available from the help.
 
 
8 hours later…
3:17 PM
@doug yeh, I think this is the result of an optimization to avoid having to do dictionary lookups at runtime
c.f. https://discord.com/channels/821509511977762827/821511172305846322/938094154163028038 or https://matrix.to/#/!laJBzNwLcAOMAbAEeQ:matrix.org/
ergh, I have no idea how to get the matrix link to work
You may have to copy and paste the entirety of https://matrix.to/#/!laJBzNwLcAOMAbAEeQ:matrix.org/$CK-IugAxVbxhONYUgMRVZpBWrhotsEU0hovtiTeyQvk
 
4:03 PM
@coltim you can always name it with [name](https://...) syntax
 

« first day (1216 days earlier)      last day (319 days later) »