Skip to content

Commit

Permalink
Make sub pair a multi
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Feb 27, 2018
1 parent 3a0d53c commit c1d2a5b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/core/Pair.pm
Expand Up @@ -136,8 +136,7 @@ sub infix:«=>»(Mu $key, Mu \value) is pure {
Pair.new($key, value)
}

sub pair(Mu $key, \value) is pure {
Pair.new($key, value)
}
proto sub pair(|) is pure {*}
multi sub pair(Mu $key, \value) { Pair.new($key, value) }

# vim: ft=perl6 expandtab sw=4

0 comments on commit c1d2a5b

Please sign in to comment.