In both cases yes, and in both cases because I made the same stupid mistake when both languages have good means to do infinite streams and &quot;take&quot; equivalents. (And that&#x27;s worse in the Java case, since I used those in the inner function but not the outer one.)<p>So, I think I need to take a break from comment-box programming for a while; its clearly not working out for me today.