|
|
|
|
|
by clarkmoody
247 days ago
|
|
The iterator can be implemented fairly simply: self.prev.iter()
.chain(iter::once(self.active))
.chain(self.next)
I'm not sure what you mean by including active in another position, but see my sibling comment that makes the active element of a different type, for another wrinkle on this thing. |
|