Last call for AliasSeq

Elvis Zhou via Digitalmars-d digitalmars-d at puremagic.com
Tue Jul 28 07:05:45 PDT 2015


On Tuesday, 28 July 2015 at 11:55:01 UTC, Ola Fosheim Grøstad 
wrote:
> On Tuesday, 28 July 2015 at 11:23:07 UTC, Elvis Zhou wrote:
>> WTF does 'Seq' means?
>> AliasSequence is much better!
>
> Seq is a function that maps natural numbers to values in the 
> set X.
>
> «A finite sequence is a finite indexed set of values of the 
> same type, whose domain is a contiguous set of positive 
> integers starting at 1.»
>
> In Z-notation:
>
> «seq X is the set of all finite sequences of values of X , that 
> is, of finite functions from the set 1 . . n, for some n, to 
> elements of X .»
>
> «seq1 X is the set of all non-empty finite sequences of values 
> of X .»
>
> «iseq X is the set of injective finite sequences over X : these 
> are precisely the
> finite sequences over X which contain no repetitions.»

Good to know, thanks.
However, isn't AliasSequence more clear and does eliminate 
ambiguity?
Moreover, as a nonnative English speaker, I've no idea how to 
pronounce Seq :(


More information about the Digitalmars-d mailing list