Author: lwall Date: 2009-05-04 05:55:43 +0200 (Mon, 04 May 2009) New Revision: 26659
Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod Log: incomplete plural to singular tranformation on key tests Modified: docs/Perl6/Spec/S32-setting-library/Containers.pod =================================================================== --- docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-05-04 03:42:39 UTC (rev 26658) +++ docs/Perl6/Spec/S32-setting-library/Containers.pod 2009-05-04 03:55:43 UTC (rev 26659) @@ -537,15 +537,15 @@ =item values - multi method keys ( @array: Matcher $indextests? ) is export - multi method kv ( @array: Matcher $indextests? ) is export - multi method pairs ( @array: Matcher $indextests? ) is export - multi method values ( @array: Matcher $indextests? ) is export + multi method keys ( @array: Matcher $indextest? ) is export + multi method kv ( @array: Matcher $indextest? ) is export + multi method pairs ( @array: Matcher $indextest? ) is export + multi method values ( @array: Matcher $indextest? ) is export Iterates the elements of C<@array>, in order. -If C<$indextests> is provided, only elements whose indices match -C<$index ~~ @indextests> are iterated. (To select on values use C<grep>.) +If C<$indextest> is provided, only elements whose indices match +C<$index ~~ $indextest> are iterated. (To select on values use C<grep>.) What is returned at each element of the iteration varies with function. C<values> returns the value of the associated element; C<kv> returns @@ -588,17 +588,17 @@ =item values - multi method keys ( %hash: Matcher $keytests? ) is export - multi method kv ( %hash: Matcher $keytests? ) is export - multi method pairs ( %hash: Matcher $keytests? ) is export - multi method values ( %hash: Matcher $keytests? ) is export + multi method keys ( %hash: Matcher $keytest? ) is export + multi method kv ( %hash: Matcher $keytest? ) is export + multi method pairs ( %hash: Matcher $keytest? ) is export + multi method values ( %hash: Matcher $keytest? ) is export Iterates the elements of C<%hash> in no apparent order, but the order will be the same between successive calls to these functions, as long as C<%hash> doesn't change. -If C<$keytests> is provided, only elements whose keys evaluate -C<$key ~~ $keytests> as true are iterated. +If C<$keytest> is provided, only elements whose keys evaluate +C<$key ~~ $keytest> as true are iterated. What is returned at each element of the iteration varies with function. C<keys> only returns the key; C<values> the value; C<kv> returns both as