Mojo function
get_string_literal_slice
get_string_literal_slice[string: StringSlice[StaticConstantOrigin], *extra: StringSlice[StaticConstantOrigin]]() -> StringLiteral
Form a string literal from a compile-time StringSlice value and additional compile-time StringSlice values.
Parameters:
- string (
StringSlice[StaticConstantOrigin]
): The first StringSlice value. - *extra (
StringSlice[StaticConstantOrigin]
): Additional StringSlice values 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!