I know that to extract the third element from a simple list containing four elements such as [1,2,3,4] I would do so as below.
third([_,_,E,_], E).
I would like to extract the third element from a group of nested lists. For example if I had [[1,2,3,4],[5,6,7,8],[9,10,11,12]], I would want an output of [3,7,11].
Any help would be much appreciated.