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