kota's memex

strings

Cutting a string into two peices:

let vector: (string, string) = strings::cut("forward 5", " ");

Cutting a string into many pieces:

const source = os::open("main.ha")!;
const source = io::drain(source)!;
const source = strings::fromutf8(source);
const source = strings::split(source, "\n");

Length (strings library not needed!):

fmt::println(len("hello world"))!;