To work with lists many c/c++ programmer use a simple for-loop. I will try to explain how this can be made a little bit easier. For that I use the self-explaining script language python. Here is a simple example to filter all odd integers from a list in simple python 2.x syntax. def filter_odd(myList): result = [] # initialize the result list for num in myList: # iterate over the list if num % 2 =