I'm trying to remove nested lists that are associated with a key
a = {{1, 2, 3, 4} -> 1, {5, 6, 7, 8} -> 1, {9, 10, 11, 12} -> 2, {13, 14, 15, 16} -> 2};
In order to create two separate lists where;
b
contains the nested lists associated with the key 1, but without the key;
c
contains the nested lists associated with the key 2, but without the key.
Would anybody be able to help?
Thanks!