<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><span style="font-family: LucidaGrande;">Hello,</span><div style="font-family: LucidaGrande;"><br></div><div style="font-family: LucidaGrande;">I recently bumped into the following issue. I expected that it was possible to use an imported function as argument in a higher-order function. For example:</div><div style="font-family: LucidaGrande;"><br></div><blockquote style="font-family: LucidaGrande; margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div>-module(bla).</div><div><br></div><div>-compile(export_all).</div><div><br></div><div>-import(lists, [reverse/1, map/2]).</div><div><br></div><div>foo(Xss) -></div><div> map(fun reverse/1, Xss).</div></blockquote><div style="font-family: LucidaGrande;"><br></div><div style="font-family: LucidaGrande;">However, the compiler complains that reverse/1 is undefined:</div><div style="font-family: LucidaGrande;"><br></div><blockquote style="font-family: LucidaGrande; margin: 0px 0px 0px 40px; border: none; padding: 0px;"><div>1> c(bla).</div><div>bla.erl:8: function reverse/1 undefined</div><div>error</div></blockquote><div style="font-family: LucidaGrande;"><br></div><div style="font-family: LucidaGrande;">Is it mandatory to give the fully qualified function name for an external function when it is used as argument in a higher-order function?</div><div style="font-family: LucidaGrande;"><br></div><div style="font-family: LucidaGrande;">Best regards,</div><div style="font-family: LucidaGrande;"><br></div><div style="font-family: LucidaGrande;">Alex </div><div style="font-family: LucidaGrande;"><br></div></body></html>