Gather

WMA link


Gather[list, test]

gathers elements of list into sub lists of items that are the same according to test.

Gather[list]

gathers elements of list into sub lists of items that are the same.

The order of the items inside the sub lists is the same as in the original list.

← Flatten
→ GatherBy