D3 suggestion: rename "range" to "sequence"

Tommi tommitissari at hotmail.com
Wed Oct 3 21:07:09 PDT 2012


On Thursday, 4 October 2012 at 03:12:21 UTC, Andrei Alexandrescu 
wrote:
>
> Ranges are not sequences because e.g. some allow random access.

Here are a couple of definitions for a sequence:

1) A sequence is an ordered list of objects (or events).
2) A sequence is a discrete function.
http://en.wikipedia.org/wiki/Sequence

3) A function with domain a set of successive integers
http://wiki.answers.com/Q/What_is_the_definition_fro_sequence_in_math

4) A list of numbers or objects in a special order
http://www.mathsisfun.com/definitions/sequence.html

The definition doesn't seem to consider how the function that 
defines the sequence is defined, sequentially or algebraically. 
And often times it's possible to figure out the algebraic 
correspond to a sequentially defined function.

So, sequence it's like set, except order matters.
http://en.wikipedia.org/wiki/Set_%28mathematics%29



More information about the Digitalmars-d mailing list