<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Snipplr</title>
<link>http://snipplr.com/tags/iteration</link>
<description>Recent snippets posted on Snipplr.com</description>
<language>en-us</language>
<pubDate>Wed, 19 Jun 2013 07:39:40 GMT</pubDate>
<item>
<title>(C#) .NET - C# - Enum - Basics - denakitan</title>
<link>http://snipplr.com/view/67826/net--c--enum--basics/</link>
<description><![CDATA[ <p>Examples of use of Enum type, like how to iterate its items.</p> ]]></description>
<pubDate>Sat, 20 Oct 2012 04:49:18 GMT</pubDate>
<guid>http://snipplr.com/view/67826/net--c--enum--basics/</guid>
</item>
<item>
<title>(jQuery) Iterate trough array - 1,2,3,1,2,3...etc - burnandbass</title>
<link>http://snipplr.com/view/64364/iterate-trough-array--123123etc/</link>
<description><![CDATA[ <p>This is perfect for "cycling" items...</p> ]]></description>
<pubDate>Thu, 05 Apr 2012 09:42:53 GMT</pubDate>
<guid>http://snipplr.com/view/64364/iterate-trough-array--123123etc/</guid>
</item>
<item>
<title>(Other) learn this - js iteration conditionals i   if else for in loops for each thing.length - brandonjp</title>
<link>http://snipplr.com/view/37786/learn-this--js-iteration-conditionals-i---if-else-for-in-loops-for-each-thinglength/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Fri, 23 Jul 2010 08:38:54 GMT</pubDate>
<guid>http://snipplr.com/view/37786/learn-this--js-iteration-conditionals-i---if-else-for-in-loops-for-each-thinglength/</guid>
</item>
<item>
<title>(PHP) Get Iteration Count in Wordpress Loop - chrisdpratt</title>
<link>http://snipplr.com/view/33852/get-iteration-count-in-wordpress-loop/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 04 May 2010 10:11:45 GMT</pubDate>
<guid>http://snipplr.com/view/33852/get-iteration-count-in-wordpress-loop/</guid>
</item>
<item>
<title>(Python) Iterating over multiple sequences at the same time - magicrebirth</title>
<link>http://snipplr.com/view/25269/iterating-over-multiple-sequences-at-the-same-time/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 22 Dec 2009 15:39:07 GMT</pubDate>
<guid>http://snipplr.com/view/25269/iterating-over-multiple-sequences-at-the-same-time/</guid>
</item>
<item>
<title>(Python) Python: iterating though strings and lists - magicrebirth</title>
<link>http://snipplr.com/view/25261/python-iterating-though-strings-and-lists/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Tue, 22 Dec 2009 15:33:36 GMT</pubDate>
<guid>http://snipplr.com/view/25261/python-iterating-though-strings-and-lists/</guid>
</item>
<item>
<title>(Python) Python: iteration, break and continue - magicrebirth</title>
<link>http://snipplr.com/view/25259/python-iteration-break-and-continue/</link>
<description><![CDATA[ <p>The Python language provides break to stop execution and break out of the current loop. Python also includes continue to stop execution of the current iteration and start the next iteration of the current loop. The following example shows the use of the break and continue statements:</p> ]]></description>
<pubDate>Tue, 22 Dec 2009 15:32:47 GMT</pubDate>
<guid>http://snipplr.com/view/25259/python-iteration-break-and-continue/</guid>
</item>
<item>
<title>(Java) Simple Times Table Generator - joshnunn</title>
<link>http://snipplr.com/view/18903/simple-times-table-generator/</link>
<description><![CDATA[ <p>Adapted the simple code the lecturer was using to generate a times table, just to see if I "got" the concept properly.</p> ]]></description>
<pubDate>Thu, 27 Aug 2009 05:55:37 GMT</pubDate>
<guid>http://snipplr.com/view/18903/simple-times-table-generator/</guid>
</item>
<item>
<title>(C#) Compare iterated types (IEnumerables and their kin) by values (to check for equality) - pckujawa</title>
<link>http://snipplr.com/view/17889/compare-iterated-types-ienumerables-and-their-kin-by-values-to-check-for-equality/</link>
<description><![CDATA[ <p>When I'm running unit tests, I find it very annoying to have to check equality within loops when I've got two collections of data. I know of no built-in way (let me know if there is one) [Edit: [CollectionAssert](http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.testtools.unittesting.collectionassert.aspx) does it. Sometimes you need to turn your IEnumerables into arrays, though, using .ToArray()] to compare two collections' values (such as an array of bytes compared to a list of bytes), so I made this extension method to do it.</p> ]]></description>
<pubDate>Tue, 04 Aug 2009 13:11:50 GMT</pubDate>
<guid>http://snipplr.com/view/17889/compare-iterated-types-ienumerables-and-their-kin-by-values-to-check-for-equality/</guid>
</item>
<item>
<title>(PHP) list->mysql query iteration for cron job - cori</title>
<link>http://snipplr.com/view/12507/listmysql-query-iteration-for-cron-job/</link>
<description><![CDATA[ <p>I needed to have a cron job that did some MySQL work iterating through a long list of items based on the content of a table in MySQL.  I wanted each item in the table to be iterated over roughly once every 5 minutes, but building up the in-memory list of items to be processed based on the full contents of the table (~100 rows) was killing server memory and the process was dying.  I wanted to find a way to, based on the time, only process a segment of the table's results, and to be reasonable confident that they would all be processed approximately every 5 minutes.

Really simple problem, actually, but it took me a while to find the right logic...</p> ]]></description>
<pubDate>Mon, 23 Feb 2009 11:27:35 GMT</pubDate>
<guid>http://snipplr.com/view/12507/listmysql-query-iteration-for-cron-job/</guid>
</item>
<item>
<title>(Ruby) Detect the first and last iteration of a loop in Ruby - noah</title>
<link>http://snipplr.com/view/12419/detect-the-first-and-last-iteration-of-a-loop-in-ruby/</link>
<description><![CDATA[ <p>It's great that, at the times I really need it, I can ask for Ruby help on `#nyc.rb`:

      how can I detect the first or last iteration of a loop in
                      Ruby or Rails?                       
      what sort of loop? an array loop?
      or something else?
      f == array.first?
      in case of an array you want #each_with_index
      yah each_with_index would do it, thanks much 
      I'm looping through an array printing LIs and I want to apply
                      css classes to the first and last LIs respectively</p> ]]></description>
<pubDate>Fri, 20 Feb 2009 13:44:51 GMT</pubDate>
<guid>http://snipplr.com/view/12419/detect-the-first-and-last-iteration-of-a-loop-in-ruby/</guid>
</item>
<item>
<title>(Java) Iterate Map - Dump Map - vonkinder</title>
<link>http://snipplr.com/view/6117/iterate-map--dump-map/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 05 May 2008 11:43:36 GMT</pubDate>
<guid>http://snipplr.com/view/6117/iterate-map--dump-map/</guid>
</item>
<item>
<title>(Lua) Lua: Descending Table Traversal Round 2: Iterator Object - kergoth</title>
<link>http://snipplr.com/view/1814/lua-descending-table-traversal-round-2-iterator-object/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 18 Dec 2006 08:06:33 GMT</pubDate>
<guid>http://snipplr.com/view/1814/lua-descending-table-traversal-round-2-iterator-object/</guid>
</item>
<item>
<title>(Other) Lua: Sane Granular Defaults for User Supplied Data - kergoth</title>
<link>http://snipplr.com/view/1813/lua-sane-granular-defaults-for-user-supplied-data/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 18 Dec 2006 08:06:32 GMT</pubDate>
<guid>http://snipplr.com/view/1813/lua-sane-granular-defaults-for-user-supplied-data/</guid>
</item>
<item>
<title>(Other) Lua: API deprecation - kergoth</title>
<link>http://snipplr.com/view/1811/lua-api-deprecation/</link>
<description><![CDATA[ <p></p> ]]></description>
<pubDate>Mon, 18 Dec 2006 08:06:31 GMT</pubDate>
<guid>http://snipplr.com/view/1811/lua-api-deprecation/</guid>
</item>
<item>
<title>(JavaScript) Iterative Node Deletion - rolandog</title>
<link>http://snipplr.com/view/293/iterative-node-deletion/</link>
<description><![CDATA[ <p>This script makes it possible to delete every childNodes, childNodes.childNodes, childNodes.childNodes.childNodes and so on. Includes example functions for deleting all childNodes, firstChild and lastChild from an 'id'. It uses twin functions that call each other until everything is removed.</p> ]]></description>
<pubDate>Sun, 09 Jul 2006 01:07:58 GMT</pubDate>
<guid>http://snipplr.com/view/293/iterative-node-deletion/</guid>
</item>
</channel>
</rss>