While you all know the fold function, not everyone is aware of its powerful counterpart, unfold. #scala #haskell 
Folding Cheat Sheet #9 - List Unfolding - 'unfold' as the Computational Dual of 'fold', and how 'unfold' relates to 'iterate' - All Slides










