If you only take the first two that satisfy the pr...
# getting-started
c
If you only take the first two that satisfy the predicate, isn't it wasteful to filter the whole list?
e
cedric: Yeah, I was focused more on the destruction declaration aspect of the example, not the starting list or how I filtered it. Though as a few people demonstrated, I could have picked a better way to illustrate this concept 🙂
c
No worries, that led me to verify what was just an assumption until now, so I learned something 🙂