list.filter function

Filter a list or vector by a series of conditions