On Tuesday, 11 November 2014 at 16:15:36 UTC, Dicebot wrote:
On Tuesday, 11 November 2014 at 16:14:10 UTC, Chris wrote:
Does that entail the concept that ranges (in D) are
homogeneous (i.e. every member/item is of the same type)?
Yes (if you mean static type)
ElementType!Range is used extensively in Phobos
Sorry, I meant does the term "набор" (=collection) entail the
concept that all items are of the same type? A collection could
also be a loose collection of elements of different types (int,
string, float, MyClass), whereas in D a range's elements can
(usually) only be of one type.