Revision 29625

Date:
2010/02/03 01:25:51
Author:
lwall
Revision Log:
[S29] more @@ and iterator patchups
Files:

Legend:

 
Added
 
Removed
 
Modified
  • docs/Perl6/Spec/S29-functions.pod

     
    20 20
    21 21 Created: 12 Mar 2005
    22 22
    23 Last Modified: 19 Nov 2009
    24 Version: 44
    23 Last Modified: 2 Feb 2010
    24 Version: 45
    25 25
    26 26 The document is a draft.
    27 27
     
    334 334
    335 335 Forces generic Item context on its argument, and returns it.
    336 336
    337 =item flat
    338
    339 our List multi flat ( *@list )
    340
    341 Forces flat context on it's arguments, and returns them.
    342 The heavy work is done by the C<*@> binding.
    343
    337 344 =item list
    338 345
    339 our List multi list ( *@list )
    346 our List multi list ( Iterable $item ) { $item.iterator.list }
    347 our List multi list ( List \$iter ) { $iter }
    340 348
    341 Forces List Context on it's arguments, and returns them.
    349 Almost a no-op; just makes sure that $item can be iterated.
    342 350
    351 =item flat
    352
    353 our List multi flat ( *@list )
    354
    355 Forces flat context on it's arguments, and returns them.
    356 The heavy work is done by the C<*@> binding.
    357
    343 358 =item slice
    344 359
    345 our List multi slice ( *@list )
    360 our List multi slice ( **@list )
    346 361
    347 362 Forces the argument list to be evaluated in slice context.
    348 363 (Slices are considered to be potentially multidimensional in PerlĀ 6.)
    349 A list of C<Capture>s will be transformed into a list of lists.
    350 Equivalent to C<@@()> (except that empty C<@@()> means C<@@($/)>, while
    351 empty C<slice()> means a null slice).
    364 Any C<Parcel> within the list will be transformed into a C<Seq>.
    365 The work is actually done by the binding to the C<**@> parameter.
    352 366
    353 367 =item hash
    354 368