|
|
|
|
|
by scott_s
2245 days ago
|
|
Is Range a kind of interface? If yes, then wouldn't that be the appropriate return type? edit: Looking at other answers, I think Range is probably not an interface like they exist in Java, but rather a pattern of behavior per templates in C++. Concepts are supposed to solve this problem in C++, but I don't know how well they actually do. |
|
See also https://tour.dlang.org/tour/en/basics/ranges