Edit a string in OCAML Ask Question

If this is also coursework, I believe your tutor asks that you discuss with the rest of the class on the forum they keep linking to in this thread:
Achieving a desired number of elements out of a list OCAML

You’re on the right track though, check the documentation for the String module, and pay attention to the sub, concat, and length functions.

1 Like