Vote?

Tobias Pankrath tobias at pankrath.net
Fri Nov 18 09:47:34 PST 2011


> Thank you, and on the description of what csvReader returns I'm wanting
> something like:
> 
> Returns:
>       An input range as defined by $(XREF range, isInputRange). When $(D
> Contents) is a struct or associative array the range is of that type,
> otherwise it is a range of ranges of that type.
> 
> And the questions are, is "range is of that type" good?
> 
> How can you express that you have a range of ranges cleanly? This is the
> hardest one to express.

Hm, by giving it a name?

Returns: An input range R as defined by ${XREF range, isInputRange). When
$(D Contents) is a struct or an associative array, the element type of R is
Contents, otherwise the element type of R is itself a range with element 
type Contents.


More information about the Digitalmars-d mailing list