I have a list with entries like
e:=[[[1,2]],[[3,4]],[[5,6]]];
I want to remove double list brackets to get a list looking like
result:=[[1,2],[3,4],[5,6]];
How can I do this in GAP?
I have a list with entries like
e:=[[[1,2]],[[3,4]],[[5,6]]];
I want to remove double list brackets to get a list looking like
result:=[[1,2],[3,4],[5,6]];
How can I do this in GAP?
A one-liner would be
If you want to modify the list in place, do