Skip to content

Commit

Permalink
Don't flatten values passed to push/unshift
Browse files Browse the repository at this point in the history
  • Loading branch information
dumarchie committed Nov 16, 2020
1 parent 1f090e0 commit e78c53b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core.c/array_operators.pm6
Expand Up @@ -51,15 +51,15 @@ multi sub shift(@a) is raw { @a.shift }

proto sub push($, |) {*}
multi sub push(\a, \b) { a.push: b }
multi sub push(\a, *@b) { a.push: |@b }
multi sub push(\a, **@b) { a.push: |@b }

proto sub append($, |) {*}
multi sub append(\a, \b) { a.append: b }
multi sub append(\a, **@b) { a.append: @b }

proto sub unshift($, |) {*}
multi sub unshift(\a, \b) { a.unshift: b }
multi sub unshift(\a, *@b) { a.unshift: |@b }
multi sub unshift(\a, **@b) { a.unshift: |@b }

proto sub prepend($, |) {*}
multi sub prepend(\a, \b) { a.prepend: b }
Expand Down

0 comments on commit e78c53b

Please sign in to comment.