Skip to main content
Log in

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.