How to access an index of an array in a map?


#1

How do you get an item in an array that is in a map? To give you an idea of what I’m trying to do, I tried both of the following, thought both yielded compiler errors:

ent:rumors{id, seq} := event:attrs;
ent:rumors{id}[seq] := event:attrs;


#2

Try this:

ent:rumors{ [ id, seq ] } := event:attrs


#3

Using hash paths to access complex structures is a very useful. Check out the documentaion at https://picolabs.atlassian.net/wiki/spaces/docs/pages/1189585/Map+Operators#MapOperators-HashPaths.