Skip to content Skip to sidebar Skip to footer
Showing posts with the label Fold

How To Write Foldr (right Fold) Generator In Python?

Python's reduce is a left-fold, which means it is tail-recursive and its uses can be neatly rew… Read more How To Write Foldr (right Fold) Generator In Python?

Python, Recursively Reduce A List (combinations/permutations)

I'm trying to make a generic function that would reduce a list like so : func(['a','… Read more Python, Recursively Reduce A List (combinations/permutations)