Hi all -

I would appreciate some help understanding how I might go about having a multi-valued array as the value of a map key, or if this is even possible; e.g.

map{ "key": [1,2,3,4,5] }

I've tried various combinations of array:flatten and array:join, but things always wind up in a sequence. (Aside: this isn't a real problem, but I'm trying to force myself to get more comfortable working with arrays and maps and this seemed like a great exercise... :) My mistake!).

E.g.
map:merge(
  (1 to 5) ! map {'key': array:flatten(array { . }) },
map{"duplicates":"combine"}
),
(: returns map{"key":(1,2,3,4,5)} :)

map
:merge(
(1 to 5) ! map {'key': array:join(array {.}) },
map{"duplicates":"combine"}
)
(: returns map{"key":([1],[2],[3],[4],[5])} :)

Are sequences the result because a map is a function item?
Thanks for any clarity you can provide!
Best,
Bridger