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

Projects
None yet
2 participants
@dmarcotte
Copy link
Contributor

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>
Array#repeated_permutation should have arity 1
Remove arg-less Array#repeated_permutation to match MRI behavior.

enebo added a commit that referenced this pull request Dec 13, 2013

Merge pull request #1335 from dmarcotte/repeat-perm-arg
Array#repeated_permutation should have arity 1

@enebo enebo merged commit 8db840c into jruby:jruby-1_7 Dec 13, 2013

@enebo enebo modified the milestones: JRuby 1.7.10, JRuby 1.7.11 Feb 24, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.