
uniq! behaves different from MRI
Reported by zhhz | March 20th, 2009 @ 11:37 AM
The uniq! behaves different from MRI when performing operation on the results:
the .uniq! returns nil in DM, but in MRI it returns an array. More details please see the comments.
Comments and changes to this ticket
-
-
Dan Kubb (dkubb) March 20th, 2009 @ 08:32 PM
- State changed from unconfirmed to not-applicable
In MRI Array#uniq! returns nil if there are no duplicate entries, so this is as expected. DM delegates to Array#uniq! anyway, so it should not differ in any way.
Is there something else you expected to happen?
-
zhhz March 21st, 2009 @ 02:49 PM
Sorry, my bad. Anyway, thank you for the clarification. You guys really did a good job!
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »