Hello, <br><br>I try to write a function to scan the message queue and discard matched messages.<br><br>Like this:<br><br>discard(Pattern) -> <br> receive<br> Pattern -><br> discard(Pattern)<br> after 0 -><br>
ok<br> end.<br><br>the problem is, that I cannot call discard({_, {msg}}) since _ is a wildcard representation. Are there any solutions?<br><br>Regards,<br>Sten Gruener<br>