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?

Correct Use Of A Fold Or Reduce Function To Long-to-wide Data In Python Or Javascript?

Trying to learn to think like a functional programmer a little more---I'd like to transform a d… Read more Correct Use Of A Fold Or Reduce Function To Long-to-wide Data In Python Or Javascript?