Answers for "ocaml chack if char is DIGIT"

0

ocaml chack if char is DIGIT

let is_char_digit (ch: char) =
  match ch with
  | '1'| '2'| '3'| '4'| '5'| '6'| '7'| '8'| '9'| '0' -> true
  | _ -> false
;;
Posted by: Guest on February-07-2022

Browse Popular Code Answers by Language