Skip to content

aviate-labs/io.mo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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.
    ...
};