Concatenate the elements of the sequence into a string separated by separator. >>> seq([1, 2, 3]).make_string("@") '1@2@3' :param separator: string separating elements in string :return: concatenated string separated by separator
(self, separator)
| 961 | return self._transform(transformations.accumulate_t(func)) |
| 962 | |
| 963 | def make_string(self, separator): |
| 964 | """ |
| 965 | Concatenate the elements of the sequence into a string separated by separator. |
| 966 | |
| 967 | >>> seq([1, 2, 3]).make_string("@") |
| 968 | '1@2@3' |
| 969 | |
| 970 | :param separator: string separating elements in string |
| 971 | :return: concatenated string separated by separator |
| 972 | """ |
| 973 | return separator.join(str(e) for e in self) |
| 974 | |
| 975 | def product(self, projection=None): |
| 976 | """ |