Link Search Menu Expand Document

IO

Table of contents

  1. IO
    1. IO.print(…values) -> Nil
    2. IO.println(…values) -> Nil
    3. IO.copyFile(String: src, String: dst) -> Result<Nil>

IO

To make use of the IO module an import is required.

import IO;

IO.print(…values) -> Nil

Prints a given list of values to stdout.

IO.print(0);
// 0

IO.println(…values) -> Nil

Prints a given list of values to stdout with an appended newline character.

IO.println("Dictu!");
// Dictu!

IO.copyFile(String: src, String: dst) -> Result<Nil>

Copies the contents from the source file to the destination file.

Returns a Result type and on success will unwrap to nil.

IO.copyFile(src, dst);

This site uses Just The Docs, with modifications.