Array#repeated_permutation should have arity 1 #1335

Merged
merged 1 commit into from Dec 13, 2013

Projects

None yet

2 participants

@dmarcotte
Contributor

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>
@dmarcotte dmarcotte Array#repeated_permutation should have arity 1
Remove arg-less Array#repeated_permutation to match MRI behavior.
89a7ba2
@enebo enebo merged commit 8db840c into jruby:jruby-1_7 Dec 13, 2013
@enebo enebo modified the milestone: 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