Mojo function
print[*Ts: Writable](*values: *Ts, *, sep: StringSlice[StaticConstantOrigin] = StringSlice(" "), end: StringSlice[StaticConstantOrigin] = StringSlice("\0A"), flush: Bool = 0, owned file: FileDescriptor = FileDescriptor(1))
Prints elements to the text stream. Each element is separated by sep
and followed by end
.
Parameters:
- *Ts (
Writable
): The elements types.
Args:
- *values (
*Ts
): The elements to print. - sep (
StringSlice[StaticConstantOrigin]
): The separator used between elements. - end (
StringSlice[StaticConstantOrigin]
): 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!