If you only take the first two that satisfy the predicate, isn't it wasteful to filter the whole list?
e
emmax
05/15/2017, 4:54 PM
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
cedric
05/15/2017, 4:55 PM
No worries, that led me to verify what was just an assumption until now, so I learned something 🙂