On Wednesday 22 January 2003 05:23 pm, Daniel Carrera wrote:
| So,
|
| Would it be correct to say that an iterator is a method that lets you
| access items one at a time? (this includes both class and instance
| methods).
|

Yes, an iterator can be a method that functions thus.

| So I cansay that Array#each is an iterator.
|
| Would this be correct?
|

Yes.  Array#each is definitely an iterator.

| Thanks.
|
| BTW, what is FOLDOC?
|

Free Online Dictionary of Computing
available at: http://wombat.doc.ic.ac.uk/foldoc/ (and many other locations)

My pleasure,

// Bruce

-- 
Bruce R. Williams :: [iusris/#ruby-lang] :: http://www.codedbliss.com

  'It does not require a majority to prevail, but rather an irate,
  tireless minority keen to set brush fires in people's minds.'
  -- Samuel Adams