Showing posts with label recursion. Show all posts
Showing posts with label recursion. Show all posts

Sunday, May 13, 2012

Javascript Recursion Improvement


Someone at work jokingly sent out an email with a html file intended to crash your browser that was the following

Friday, May 4, 2012

Anonymous recursive PHP functions


Is it possible to have a PHP function that is both recursive and anonymous? This is my attempt to get it to work, but it doesn't pass in the function name.

Wednesday, February 8, 2012

Recursively traverse object in Objective-C


I'm converting diverse JSON objects to structured objects and want to iterate over all the nodes to process each one hierarchically. JSON framework supports conversion to an NSDictionary, which I thought was unstructured. I want to recursively iterate through each item and pay respect to the structure. How would this be done with either a dictionary or generic NSOBject?

Thursday, January 12, 2012