Iterator vs Cursor - What's the difference?

iterator | cursor |


As nouns the difference between iterator and cursor

is that iterator is one which iterates while cursor is a part of any of several scientific instruments that moves back and forth to indicate a position.

As a verb cursor is

(computing) to navigate by means of the cursor keys.

Other Comparisons: What's the difference?

iterator

English

Noun

(wikipedia iterator) (en noun)
  • One which iterates.
  • (computing) A method capable of performing the same action on every item in a collection.
  • cursor

    English

    Alternative forms

    * cursour (obsolete)

    Noun

    (en noun)
  • A part of any of several scientific instruments that moves back and forth to indicate a position
  • (graphical user interface) A moving icon or other representation of the position of the pointing device.
  • (graphical user interface) An indicator, often a blinking line or bar, indicating where the next insertion or other edit will take place. Also referred to as "the caret".
  • (databases) A reference to a row of data in a table, which moves from row to row as data is retrieved by way of it.
  • (programming) A design pattern in object oriented methodology in which a collection is iterated uniformly, also known as the iterator pattern.
  • Verb

    (en verb)
  • (computing) To navigate by means of the cursor keys.
  • * 1990 , InfoWorld (volume 12, number 22, 28 May 1990)
  • The only other problem is that there's a nagging tendency for the highlight to overrun when cursoring through file lists.

    See also

    * electronic display * GUI * pointer ----