Link Details

Link 52333 thumbnail
User 201936 avatar

By raganwald
via weblog.raganwald.com
Published: Nov 13 2007 / 09:11

The unfold method is like unfolding a protein molecule. When you stare at a data structure, it’s dense, opaque. But you supply an unfold algorithm, and what looked like a messy ball of twine unravels into a long filament made up of simple elements. When you want to iterate through something, and you want to separate the mechanism for iterating through the data from what you do with the data, :unfold should be in your tool box.
  • 14
  • 0
  • 730
  • 218

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.