Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

        xfoldr = lambda f,i: lambda s: reduce(f, s, i)
        


src/l/i/list115utils-1.0.1/list115utils/test/test_listutils.py   list115utils(Download)
        self.assertEqual(foldr(add, 2, []), 2)
 
from list115utils import xfoldr
class TestXFoldr(TestListUtils):
    def test_xfoldr_can_produce_sum(self):
        xsum = xfoldr(add, 0)