DEV Community

loading...

Discussion on: Daily Challenge #172 - Find All in an Array

Collapse
citizen428 profile image
Michael Kohl

I find it slightly more idiomatic to write indexed with an infinite list as second argument, since zip will only consume length xs elements from the second list anyway:

indexed = zip xs [0..]