1

I always see this:

(_, arg1, arg2) => some expresion

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

omgj
  • 1,369
  • 3
  • 12
  • 18

1 Answers1

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.

zetavolt
  • 2,989
  • 1
  • 23
  • 33