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

Array#repeated_permutation should have arity 1 #1335

Merged
merged 1 commit into from Dec 13, 2013

Conversation

@dmarcotte
Copy link
Contributor

@dmarcotte dmarcotte commented Dec 13, 2013

Remove arg-less Array#repeated_permutation to match MRI behavior. (Noticed this implementing Array#repeated_permutation.size: it relies on #repeated_permutation having an arg)

$ ruby -e "p [].repeated_permutation"
-e:1:in `repeated_permutation': wrong number of arguments (0 for 1) (ArgumentError)
    from -e:1:in `<main>'

vs.

$ jruby -e "p [].repeated_permutation"
#<Enumerator: []:repeated_permutation>
Remove arg-less Array#repeated_permutation to match MRI behavior.
enebo added a commit that referenced this issue Dec 13, 2013
Array#repeated_permutation should have arity 1
@enebo enebo merged commit 8db840c into jruby:jruby-1_7 Dec 13, 2013
@enebo enebo added this to the JRuby 1.7.10 milestone Feb 24, 2014
@enebo enebo removed this from the JRuby 1.7.11 milestone Feb 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

2 participants