Mojo function
print[*Ts: Formattable](*values: *Ts, *, sep: StringSlice[0, MutableStaticLifetime] = " ", end: StringSlice[0, MutableStaticLifetime] = "\0A", flush: Bool = 0, file: FileDescriptor = 1)
Prints elements to the text stream. Each element is separated by sep
and followed by end
.
Parameters:
- *Ts (
Formattable
): The elements types.
Args:
- *values (
*Ts
): The elements to print. - sep (
StringSlice[0, MutableStaticLifetime]
): The separator used between elements. - end (
StringSlice[0, MutableStaticLifetime]
): The String to write after printing the elements. - flush (
Bool
): If set to true, then the stream is forcibly flushed. - file (
FileDescriptor
): The output stream.
Was this page helpful?
Thank you! We'll create more content like this.
Thank you for helping us improve!
😔 What went wrong?