Author: masak Date: 2009-05-19 09:50:36 +0200 (Tue, 19 May 2009) New Revision: 26882
Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod Log: [S32/Containers.pod] removed examples from 'map' The examples didn't particularly add anything that the synopsis didn't already make clear. Also, the first example could have been written better with a hash slice, making it didactically non-ideal. Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-05-19 07:35:58 UTC (rev 26881) +++ docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-05-19 07:50:36 UTC (rev 26882) @@ -237,20 +237,10 @@ the return value of the expression, evaluated once for every one of the C<@values> that are passed in. -Here is an example of its use: - - @addresses = map { %addresses_by_name{$_} }, @names; - -Here we take an array of names, and look each name up in -C<%addresses_by_name> in order to build the corresponding -list of addresses. - If the expression returns no values or multiple values, then the resulting list may not be the same length as the number of values -that were passed. For example: +that were passed. - @factors = map { prime_factors($_) }, @composites; - The actual return value is a multislice containing one slice per map iteration. In most contexts these slices are flattened into a single list.