Skip to content

Latest commit

 

History

History
15 lines (12 loc) · 308 Bytes

README.md

File metadata and controls

15 lines (12 loc) · 308 Bytes

Basic Interfaces for I/O Primitives

Usage

let data = Iter.fromArray<Nat8>(Blob.toArray(Text.encodeUtf8(
    "Text or something else that can be converted to bytes.",
)));

let reader = IO.fromIter(data);
switch (IO.readAll(reader)) {
    case (#ok(bs)) // [...].size() == 54.
    ...
};