Skip to main content
Log in

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.