Advertisement
Guest User

Untitled

a guest
Jun 29th, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
OCaml 0.31 KB | None | 0 0
  1. let minus(s) =
  2.         if pr(s) <= `A`  &  pr(s) >= `Z`
  3.         then char_of_int(int_of_char(pr(s)) + 32)
  4.         else    
  5.             if dr(s) <= `A`  &  dr(s) >= `Z`
  6.             then char_of_int(int_of_char(dr(s)) + 32)
  7.             else s  ;;
  8.  
  9.  
  10. >           else s  ;;
  11. >                ^
  12. Cette expression est de type string,
  13. mais est utilisée avec le type char.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement