How can I form a list of lists in ATS?
For instance, I would like to have a list consisting of all the permutations of the list (1, 2, 3).
In addition, how can I flatten a list of lists into a list?
How can I form a list of lists in ATS?
For instance, I would like to have a list consisting of all the permutations of the list (1, 2, 3).
In addition, how can I flatten a list of lists into a list?
Say that you want to use list0 (un-indexed):
For flattening, you can use
list0_concat
: