Maybe it is supersimple, but I can't think of something simple and efficient.
I have, say, the list :
[[11, 2, 4],
 [11, 37, 1],
 [13, 2, 5],
 [13, 17, 1],
 [14, 11, 1],
 [14, 47, 1],
 [15, 2, 3],
 [15, 61, 1],
 [17, 2, 3],
 [17, 53, 1],
 [19, 2, 5],
 [19, 11, 1]]
and I'm looking for a function where outputs
[[11,[2,4],[37,1]],[13,[2,5],[17,1]], etc]
 
     
     
     
    