Modifying A String With blit_string
let remove_first_char = (str: string): string => {
let copy_len = String.length(str) - 1;
let dst = Bytes.create(copy_len);
Bytes.blit_string(str, 1, dst, 0, copy_len);
Bytes.to_string(dst);
};Last updated