ConsoleIO

public enum ConsoleIO

Utilities to read and write to the standard input/output in a functional manner.

  • IO suspended version of Swift.print(_:separator:terminator:). Refer to that function for further documentation.

    Declaration

    Swift

    public static func print<E>(_ line: Any, separator: String = " ", terminator: String = "\n") -> IO<E, ()> where E : Error
  • IO suspended version of Swift.readLine(strippingNewline:). Refer to that function for further documentation.

    Declaration

    Swift

    public static func readLine<E>(strippingNewline: Bool = true) -> IO<E, String?> where E : Error