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
Calling functions by a string variable?
Learning
1
1154
August 11, 2017
String vs StringLabels
Learning
8
1349
October 27, 2017
How to access the module Uutf.String.UTF_8
Learning
23
4643
March 28, 2018
String manipulation
Learning
ocaml
9
5257
January 23, 2020
Just reinvented OOP
Learning
7
1446
September 1, 2021