Mojo function
get_string_literal_slice2
get_string_literal_slice2[string: StringSlice[StaticConstantOrigin], extra: VariadicList[StringSlice[StaticConstantOrigin]]]() -> StringLiteral
Form a string literal from N compile-time StringSlice values concatenated.
Parameters:
- string (
StringSlice[StaticConstantOrigin]
): The first string slice to use. - extra (
VariadicList[StringSlice[StaticConstantOrigin]]
): Additional string slices to concatenate.
Returns:
The string value as a StringLiteral.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!