OCaml
How does one index/split/splice strings in OCaml like we do in Python?
Learning
rene_sax
November 9, 2019, 12:51am
1
I want to do:
"abc"[1:2]
to get
"bc"
Chet_Murthy
November 9, 2019, 2:06am
2
# String.sub "abc" 1 2 ;; - : string = "bc"
Related topics
Topic
Replies
Views
Activity
Edit a string in OCAML Ask Question
Learning
2
1454
February 13, 2018
How to sort a string in Ocaml?
Learning
15
6064
December 27, 2019
Redefining the string index operator
Community
suggestion
8
886
January 16, 2023
Proper way to allocate an OCaml string from C code in OCaml 4.10?
Community
2
1164
January 25, 2020
String manipulation
Learning
ocaml
9
4932
January 23, 2020