MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / make_string

Method make_string

functional/pipeline.py:963–973  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 """

Callers 3

to_fileMethod · 0.95
to_jsonlMethod · 0.80
test_make_stringMethod · 0.80

Calls 1

joinMethod · 0.80

Tested by 1

test_make_stringMethod · 0.64