Home Segments Index Top Previous Next

396: Practice

Write oddElements, a method that answers an array that contains only the odd-numbered elements of the receiver array. Use the to:by:do: message explained in Segment 309.