Question #6662
Submitted by Answiki
on 09/16/2022 at 07:59:43 PM UTC
How to get the length of a string with OCaml?
Merged questions
Answer
Submitted by Answiki
on 09/16/2022 at 08:03:12 PM UTC
With OCaml, the length function of the String module returns the length of a string:
# String.length "An example of a text" ;;
- : int = 20
Answer by Answiki on 09/16/2022 at 08:03:12 PM
With OCaml, the length function of the String module returns the length of a string:
# String.length "An example of a text" ;;
- : int = 20
Question by Answiki 09/16/2022 at 07:59:43 PM
How to get the length of a string with OCaml?
| # | ID | Query | URL | Count |
|---|---|---|---|---|
| 0 | 13050 | en | https://en.ans.wiki/6662/how-to-get-the-length-of-a-string-with-ocaml | 5 |
Icons proudly provided by Friconix.