Created
June 17, 2010 07:41
-
-
Save snarkyboojum/441809 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From f0b5eafaa4310c84f01b6b19aade9bb487da08fa Mon Sep 17 00:00:00 2001 | |
From: snarkyboojum <snarkyboojum@gmail.com> | |
Date: Thu, 17 Jun 2010 17:40:24 +1000 | |
Subject: [PATCH] Get rotate working for Parcel again | |
--- | |
src/core/Parcel.pm | 2 ++ | |
1 files changed, 2 insertions(+), 0 deletions(-) | |
diff --git a/src/core/Parcel.pm b/src/core/Parcel.pm | |
index c96e94b..cfaf4fd 100644 | |
--- a/src/core/Parcel.pm | |
+++ b/src/core/Parcel.pm | |
@@ -6,6 +6,8 @@ augment class Parcel does Positional { | |
# Need this method here to avoid ResizablePMCArray.sort from Parrot. | |
method sort(&by = &infix:<cmp>) { self.list.sort(&by) } | |
· | |
+ method rotate($n = 1) is export { self.list.rotate($n) } | |
+ | |
method at_pos($pos) { self.flat.[$pos] } | |
· | |
multi method ACCEPTS($x) { | |
--· | |
1.7.0.4 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment