OxL Reference

fn print

Writes x (via Show) and a newline to stdout.

Example:

oxl✓ checked in CI
fn main() io {
  print("hello")
  print(42)
  print([1, 2])
}
Output
hello
42
[1, 2]
@intrinsic("print") pub(api) fn print<T>(x: &T) io

Complexity. O(size of the text).

Since. 1.0.0-beta

Parameters

NameType
x&T

Effects

io

Defined in: std/core/functions.oxl:20

See also