Subject: | Confusing doc and behavior of natatime in Array trait |
Hello
When passing a sub ref to the natatime method, natatime will not return
an iterator. It will instead run the iteration *immediately* and call
the sub ref as many time as required. Then natatime will return the
return value of the last subref invocation.
This behavior may be intented, but it's quite surprising when we expect
the natatime method to always return an iterator.
This behavior should be clearly documented.
Hope this helps (and thanks for Moose, it's great :-) )