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: Error>( _ line: @escaping @autoclosure () -> Any, separator: @escaping @autoclosure () -> CustomStringConvertible = " ", terminator: @escaping @autoclosure () -> CustomStringConvertible = "\n") -> IO<E, ()>
-
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