I am currently learning OCaml and i couldn't make sublist even thought I can make a list without spaces as ['1'; '2'; '3'; '4'; '5'; '6']
. I couldn't find any sources to my question so thanks for explaining it too please.
type chiffre = int (*0-9*);;type chiffreCar = char (* '0' - '9'*)type nombre = chiffre list;;type txtnb = chiffreCar list ;;let rec les_nb (a:txtnb) : txtnb = match a with | [] -> [] | '' :: tl -> les_nb(tl) | hd::tl ->hd :: les_nb(tl) ;;