3 ms·
Why not use a loop instead though?
by kazagistar 13y ago
Why not use a loop instead though?
- pestaa 13y agoBecause you need to track and update the temporary state. Maps and folds let you define your stepping algorithm separately.
- kazagistar 13y agoIn python? I wasn't aware that fold did anything other then iterate in order...