def someFunc(trueorfalsefunc, l):
    trueList = []
falseList = []
for item in l:
    if trueorfalsefunc(item):
        trueList.append(item)
else:
    falseList.append(item)
return trueList, falseList
filtered and non-filtered elements in a single pass