By ashiro
via wordaligned.org
Submitted: Nov 22 2007 / 03:05
Here’s a problem I encountered when writing the HTML generator for this site. Logically, Word Aligned is a time-ordered collection of articles. I wanted each article to link to its predecessor and successor. So the general problem is: How do you iterate through a collection yielding (previous, this, next) triples?
Add your comment