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

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

From:
pmichaud
Date:
November 12, 2008 06:50
Subject:
[svn:parrot] r32573 - trunk/languages/perl6/src/classes
Message ID:
20081112145051.6A0DDCB9AF@x12.develooper.com
Author: pmichaud
Date: Wed Nov 12 06:50:50 2008
New Revision: 32573

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

Log:
[rakudo]:  Fix .list method on arrays (and arrayrefs).


Modified: trunk/languages/perl6/src/classes/Array.pir
==============================================================================
--- trunk/languages/perl6/src/classes/Array.pir	(original)
+++ trunk/languages/perl6/src/classes/Array.pir	Wed Nov 12 06:50:50 2008
@@ -117,6 +117,17 @@
 .end
 
 
+=item list()
+
+Return Array as a List (i.e., values)
+
+=cut
+
+.sub 'list' :method
+    .tailcall self.'values'()
+.end
+
+
 =item pop()
 
 Remove the last item from the array and return it.



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