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

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;

Try this:

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

1 Like

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.

1 Like