RosettaCodeData/Task/Copy-a-string/Standard-ML/copy-a-string-2.ml

3 lines
155 B
OCaml

val srcCopy2 = CharArray.array (CharArray.length srcCopy, #"x"); (* 'x' is just dummy character *)
CharArray.copy {src = srcCopy, dst = srcCopy2, di = 0};