Guest User

Untitled

a guest
Jul 15th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. let prefixFun a b = a + "" + b;;
  2. let exclaim s = s + "!";;
  3. let bigHello = prefixFun >> exclaim;;
  4.  
  5. let bigHello = prefixFun >> exclaim;;
  6. ----------------------------^^^^^^^
  7.  
  8. stdin(28,29): error FS0001: Type mismatch. Expecting a
  9. '(string -> string) -> 'a'
  10. but given a
  11. 'string -> string'
  12. The type 'string -> string' does not match the type 'string'
Add Comment
Please, Sign In to add comment