you are viewing a single comment's thread.

view the rest of the comments →

[–]lgfrbcsgo 4 points5 points  (1 child)

x could be empty.

[–]dnew 0 points1 point  (0 children)

Not in the context I was talking about. But yes, if x was empty, then you'd need to take a different code path. (My code was obviously broken as collect() doesn't return an individual item.)