develooper Front page | perl.cvs.parrot | Postings from December 2008

[svn:parrot] r33963 - trunk/languages/perl6/src/classes

From:
pmichaud
Date:
December 16, 2008 09:28
Subject:
[svn:parrot] r33963 - trunk/languages/perl6/src/classes
Message ID:
20081216172837.1609FCBA12@x12.develooper.com
Author: pmichaud
Date: Tue Dec 16 09:28:34 2008
New Revision: 33963

Modified:
   trunk/languages/perl6/src/classes/Pair.pir

Log:
[rakudo]:  Add Pair.pairs (RT #59394, bacek++).


Modified: trunk/languages/perl6/src/classes/Pair.pir
==============================================================================
--- trunk/languages/perl6/src/classes/Pair.pir	(original)
+++ trunk/languages/perl6/src/classes/Pair.pir	Tue Dec 16 09:28:34 2008
@@ -62,6 +62,15 @@
 .end
 
 
+=item pairs
+
+=cut
+
+.sub 'pairs' :method
+    .tailcall self.'list'()
+.end
+
+
 =item get_string()  (vtable method)
 
 Stringify the Pair.



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About