It doesn’t answer your question directly (I don’t know where the Stdlib is going w.r.t. Bytes/String and syntactic sugar), but something that might help is that you can use
let ( .%[]<- ) = Bytes.set
and then
s.%[4] <- 'a';
It doesn’t answer your question directly (I don’t know where the Stdlib is going w.r.t. Bytes/String and syntactic sugar), but something that might help is that you can use
let ( .%[]<- ) = Bytes.set
and then
s.%[4] <- 'a';