It is not equivalent to _ , it is equivalent to any other identifier. That is, if an identifier is used as a template in Haskell, the template always matches and the agreed value is bound to that identifier (unlike _ , where it also always matches, but the matching value is discarded).
Just to be clear: otherwise identifier is not special here. The code could also be x -> "!?" . In addition, since the binding is never used, it would be wise to use _ to avoid the โunused identifierโ warning and make it clear to the reader that the value does not matter.
sepp2k
source share