From 4844df22b5e1b878a2173640b049009bf8c666bf Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Sun, 31 Jul 2016 23:36:10 -0400 Subject: [PATCH] convenience ftw --- dom.d | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dom.d b/dom.d index b3fbced..6fe9b43 100644 --- a/dom.d +++ b/dom.d @@ -3215,6 +3215,11 @@ struct ElementCollection { return ec; } + /// + Element opIndex(int i) { + return elements[i]; + } + /// if you slice it, give the underlying array for easy forwarding of the /// collection to range expecting algorithms or looping over. Element[] opSlice() {