Question: select parts of a list

a:=[ [ 6,3],[5,6],[6,6],[5,8],[4,7],[5.5,10],[6,12],[5,11],[5,13]]

how do I select the list sets, say that contain in the first position 6.  Something like

if a[i][1]=6 then put the pair in a list.

 

 

Please Wait...