Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The .classify method is calling the closure twice on the first element #4529

Closed
p6rt opened this issue Sep 10, 2015 · 4 comments
Closed

The .classify method is calling the closure twice on the first element #4529

p6rt opened this issue Sep 10, 2015 · 4 comments

Comments

@p6rt
Copy link

p6rt commented Sep 10, 2015

Migrated from rt.perl.org#126032 (status was 'resolved')

Searchable as RT126032$

@p6rt
Copy link
Author

p6rt commented Sep 10, 2015

From @TimToady

06​:34 < TimToady> a bug spotted by
http://rosettacode.org/wiki/Equilibrium_index#Perl_6
06​:34 < TimToady> m​: say <a b c>.classify​: { ~($ ~= $_); }
06​:34 <+camelia> rakudo-moar 81de8d​: OUTPUT«aa => [a], aab => [b], aabc =>
[c]␤»
06​:34 < TimToady> seems .classify is assuming no side effects

@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

From @niner

Fixed in Rakudo commit b4a9f56469a55d5d8a23a21ce7cb0704376d885f
Tests in roast commit 621b3487768ff254e80894f01b39507631901e9f

@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

The RT System itself - Status changed from 'new' to 'open'

@p6rt
Copy link
Author

p6rt commented Sep 14, 2015

@niner - Status changed from 'open' to 'resolved'

@p6rt p6rt closed this as completed Sep 14, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant