join
relationalai.semantics.std.strings
join(strs: Sequence[StringValue], separator: str = "") -> ExpressionJoin a sequence of strings with a separator.
Parameters
Section titled “Parameters”
(strsSequence[StringValue]) - A sequence of string values to join.
(separatorstr, default:"") - The separator to use between strings.
Returns
Section titled “Returns”Expression- AnExpressionrepresenting the joined string. ReturnsString.
Examples
Section titled “Examples”Join strings with various separators:
>>> strings.join(["FIRST", "MIDDLE", "LAST"]) # defaults to empty string separator>>> strings.join([Person.first, Person.last], " ")>>> strings.join([Person.first, "the best", Person.last], " | ")Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Use advanced reasoning > Rules-based reasoning └── Work with strings └── Build derived text values