<filename>lang/py/cookbook/v2/source/cb2_5_11_exm_3.py
q=lambda x:(lambda o=lambda s:[i for i in x if cmp(i,x[0])==s]:
            len(x)>1 and q(o(-1))+o(0)+q(o(1)) or x)()

<filename>lang/py/cookbook/v2/source/cb2_5_11_exm_3.py
q=lambda x:(lambda o=lambda s:[i for i in x if cmp(i,x[0])==s]:
            len(x)>1 and q(o(-1))+o(0)+q(o(1)) or x)()
