CSci 4651 Lab 4: Writing Ruby enumerable methods.

Due Friday, April 8 at 11:59pm (by e-mail)

15 points: writing Ruby enumerable methods for nested arrays

Start with the NestedArray example here. Add the following methods:

Some helpful links: Ruby array methods (use push or << to add an element at teh end of an array); Ruby if/else variants (know when to use "end", etc.)

CSci 4651 course web site.

The views and opinions expressed in this page are strictly those of the page author. The contents of this page have not been reviewed or approved by the University of Minnesota.