6 lines
148 B
Text
6 lines
148 B
Text
# let str = "some text" ;;
|
|
val str : string = "some text"
|
|
|
|
(* modifying a character, OCaml strings are mutable *)
|
|
# str.[0] <- 'S' ;;
|
|
- : unit = ()
|