Do infinite bidirectional ranges make any sense?
Timon Gehr
timon.gehr at gmx.ch
Sun Aug 12 10:11:19 PDT 2012
On 08/12/2012 06:01 PM, Joseph Rushton Wakeling wrote:
> On 12/08/12 05:11, Jonathan M Davis wrote:
>> Can anyone think of any situation where an infinite bidirectional
>> range would
>> make any sense at all?
>
> Surely in principle, any countable set? Albeit that in practice some of
> them might not be convenient to represent that way.
>
> Does "infinite bidirectional" imply that it's infinite in both
> directions, or merely that it can be parsed either way and is infinite
> in overall size?
It means that it has front/back/popFront/popBack and is never empty.
More information about the Digitalmars-d
mailing list