<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div></div><div>You can use mochiglobal or a similar trick to do what you want.</div><div><br></div><div><a href="https://github.com/mochi/mochiweb/blob/master/src/mochiglobal.erl">https://github.com/mochi/mochiweb/blob/master/src/mochiglobal.erl</a></div><div><br></div><div>-Anthony</div><div><br>On Oct 30, 2017, at 8:41 AM, Jarosław Preś <<a href="mailto:jaroslaw.p.75@gmail.com">jaroslaw.p.75@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div>Hi,</div><div><br></div><div>Is it possible to make an erlang function be evaluated only once at first call and then return this value each time?</div><div><br></div><div>BR/Jarek</div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a></span><br><span><a href="http://erlang.org/mailman/listinfo/erlang-questions">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></body></html>