Ask Your Question
0

What is causing the "applied to too many arguments" error in ocaml?

asked 2023-05-27 05:59:01 +0000

lalupa gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2023-05-27 06:00:02 +0000

bukephalos gravatar image

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).

edit flag offensive delete link more

Your Answer

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

Add Answer


Question Tools

Stats

Asked: 2023-05-27 05:59:01 +0000

Seen: 12 times

Last updated: May 27 '23