Changeset 15500 for docs/Perl6/Spec
- Timestamp:
- 03/07/07 10:06:22 (21 months ago)
- Files:
-
- 1 modified
-
docs/Perl6/Spec/Functions.pod (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Spec/Functions.pod
r15327 r15500 744 744 =item join 745 745 746 our Str multi method join ( @values: Str $separator = ' ')746 our Str multi method join ( $separator: @values ) 747 747 our Str multi join ( Str $separator = ' ', *@values ) 748 748 749 749 C<join> returns a single string comprised of all of the elements 750 of C<@values>, separated by C<$separator>. The separator defaults 751 to a single space. 750 of C<@values>, separated by C<$separator>. 752 751 753 752 Given an empty list, C<join> returns the empty string. 754 753 755 To join with no separator you can use the C<[~]> reduce operator. 754 The separator defaults to a single space. To join with no separator, 755 you can use the C<[~]> reduce operator. 756 756 757 757 =item map … … 1136 1136 1137 1137 If the substring is found, then the position of the first character of 1138 the substring is returned. If the substring is not found, then 1139 undef is returned. 1138 the substring is returned. If the substring is not found, then C<-1> is 1139 returned. [Conjecture: Could it be "-1 but Undef" or something?] 1140 1140 1141 1141 =item pack
