Question #2653   Proposée par Answiki le 26/11/2021 à 20:15:22 UTC

Comment obtenir la longueur d'une chaîne de caractères avec OCaml ?

Answer   Submitted by Answiki on 09/16/2022 at 08:02:48 PM UTC

La fonction length du module String permet d'obtenir la longueur d'une chaîne avec OCaml :

# String.length "Un exemple de texte" ;;
- : int = 19


4 events in history
Answer by Answiki on 09/16/2022 at 08:02:48 PM

La fonction length du module String permet d'obtenir la longueur d'une chaîne avec OCaml :

# String.length "Un exemple de texte" ;;
- : int = 19


Answer by Answiki on 09/16/2022 at 08:02:39 PM

La fonction length du module String permet d'obtenir la longueur d'une chaîne avec OCaml :

# String.length "Un exemple de texte" ;;
- : int = 19


Answer by Answiki on 11/26/2021 at 08:15:49 PM

La fonction length du module String permet d'obtenir la longueur d'une chaîne avec OCaml :

# String.length "Expression logique et fonctionnelle évidemment" ;;
- : int = 46


Question by Answiki 11/26/2021 at 08:15:22 PM
Comment obtenir la longueur d'une chaîne de caractères avec OCaml ?

Icons proudly provided by Friconix.