<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Jan 5, 2020 at 8:13 AM Richard O'Keefe <<a href="mailto:raoknz@gmail.com">raoknz@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">I'm trying to think of a non-*accidental* semantics for fun patterns.<br>
fun _:_/n matches any function reference of arity n, which certainly<br>
has something to do with how we can call it.<br>
fun _:_/_ matches any function reference.<br>
I'm struggling to imagine plausible use cases for this.<br>
Do you have some examples?<br>
<br></blockquote><div><br></div><div>The latter pattern is not different from the is_function/1 guard, but the only place I can think of to call it (aside from serialization or hashing) would be when passing it to apply/2, which accepts a fun and a list of arguments.<br></div></div></div>