#NEWLINE# def where( self , func ) : #NEWLINE# #INDENT# '\n        Selects elements where func evaluates to True.\n\n        >>> seq([-1, 1, -2, 2]).where(lambda x: x > 0)\n        [1, 2]\n\n        :param func: function to filter on\n        :return: filtered sequence\n        ' #NEWLINE# return self . _transform ( transformations . where_t ( func ) )