mirror of https://github.com/adamdruppe/arsd.git
convenience ftw
This commit is contained in:
parent
2e68805b68
commit
4844df22b5
5
dom.d
5
dom.d
|
@ -3215,6 +3215,11 @@ struct ElementCollection {
|
||||||
return ec;
|
return ec;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///
|
||||||
|
Element opIndex(int i) {
|
||||||
|
return elements[i];
|
||||||
|
}
|
||||||
|
|
||||||
/// if you slice it, give the underlying array for easy forwarding of the
|
/// if you slice it, give the underlying array for easy forwarding of the
|
||||||
/// collection to range expecting algorithms or looping over.
|
/// collection to range expecting algorithms or looping over.
|
||||||
Element[] opSlice() {
|
Element[] opSlice() {
|
||||||
|
|
Loading…
Reference in New Issue