I need to use function cartesian from List::Gen. This function requires LIST as a second parameter, but I have an array, like
$VAR1 = [
[
1,
2,
3
],
[
'a',
'b',
'c'
],
[
'x'
]
];
How can I “convert” such array into list, so cartesian can be used? Putting array into list context does not seems to work in this case.
In your new question, you have
Despite your claims that it doesn’t work, all you need is to evaluate the array in list context.
For example,
gives