in reply to Re^2: Improve foreach with help of map?
in thread Improve foreach with help of map?

{ map { say; last if /3/ } 1..5 }
is a contortionist's way of writing
for (1..5) { say; last if /3/ }

Replies are listed 'Best First'.
A reply falls below the community's threshold of quality. You may see it by logging in.