rustlings icon indicating copy to clipboard operation
rustlings copied to clipboard

iterators4 text is a bit unclear

Open sapir opened this issue 6 years ago • 1 comments

"Do not use return. For extra fun don't use loops" etc. - this is an iterators exercise, so I assume that this is a strict requirement, but when I read it at first, I thought it meant that avoiding loops was for bonus points.

sapir avatar Apr 20 '20 15:04 sapir

I think that you read it correctly. I took the first part to not use the "return" keyword as the function expects to have something returned. The rest I solved using a functional pattern which satisfied the rest but I think that it should pass you even if you use a loop or additional variables.

sthavens avatar May 30 '20 05:05 sthavens