Sequence

From Rosetta Code
Revision as of 16:28, 9 October 2011 by rosettacode>Kernigh (Rosetta Code has a huge page about "array", but nothing about "sequence"!)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

A sequence is an ordered list of values. A sequence might be an array or linked list that contains the values, or it might be a lazy sequence that knows how to generate the values.

Some languages, like Common Lisp and Factor, use the term sequence; but some other languages, like Java, prefer the term list for the same idea.