Serhiy Storchaka writes: > The default predicate is not "bool". The default is identity function > (lambda x: x). IIUC correctly, the intent is "bool", it just happens that it's more efficient to spell it "lambda x: x" when you don't actually need a Boolean value.