1

I always see this:

(_, arg1, arg2) => some expresion

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

omgj
  • 1,319
  • 2
  • 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.

ŹV -
  • 2,641
  • 1
  • 20
  • 30