1

I always see this:

(_, arg1, arg2) => some expresion

What does the underscore entail? I assume a 'we don't really mind'.

0

1 Answer 1

1

This is a common idiom used to indicate an unused argument.

The convention differs slightly between communities: Erlang commonly suffixes the variable used in the function signature, Prolog adds a single differentiating character while OCaml omits all but the character itself. All are widely understood pieces of metonymy in computer programming.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.