The "applied to too many arguments" error in OCaml occurs when a function is called with more arguments than it expects. For example, if the function definition is let add a b = a + b
and we call it with add 1 2 3
, we will get an "applied to too many arguments" error because the function only takes two arguments (a
and b
).
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2023-05-27 05:59:01 +0000
Seen: 12 times
Last updated: May 27 '23