FAQ
Author: larry
Date: Sat Jul 26 21:04:50 2008
New Revision: 14570

Modified:
doc/trunk/design/syn/S09.pod

Log:
Allow stackable subscript declarations and (-->type)


Modified: doc/trunk/design/syn/S09.pod
==============================================================================
--- doc/trunk/design/syn/S09.pod (original)
+++ doc/trunk/design/syn/S09.pod Sat Jul 26 21:04:50 2008
@@ -713,6 +713,12 @@
# Same...
@calendar[ **{July; 1..3}; *-3..*-1]

+It is also possible to stack subscript declarations of various
+types, including a final normal signature to specify named args
+and return type:
+
+ my @array[10]{'a'..'z'}(:$sparse --> MyType);
+
=head1 PDL support

An array C<@array> can be tied to a PDL at declaration time:

Search Discussions

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupperl6-language @
categoriesperl
postedJul 27, '08 at 4:04a
activeJul 27, '08 at 4:04a
posts1
users1
websiteperl6.org

1 user in discussion

Larry: 1 post

People

Translate

site design / logo © 2021 Grokbase