DEV Community

Discussion on: Pack the same elements into a list inside a list.

Collapse
 
idanarye profile image
Idan Arye

Should [1, 2, 1] be converted to [[1], [2], [1]] or to [[1, 1], [2]]?

Collapse
 
antonrich profile image
Anton

To [[1], [2], [1]]