<div dir="ltr">Eval/Apply is a concept taken from Lisp<div><br></div><div><a href="https://mitpress.mit.edu/sicp/full-text/sicp/book/node77.html">https://mitpress.mit.edu/sicp/full-text/sicp/book/node77.html</a><div><br></div><div><a href="https://en.wikipedia.org/wiki/Eval">https://en.wikipedia.org/wiki/Eval</a><br></div><div><a href="https://en.wikipedia.org/wiki/Apply">https://en.wikipedia.org/wiki/Apply</a></div><div><br></div><div>Essentially, eval "executes" or "runs" S-expressions which then return/evaluate-to something - maybe a number, maybe a string, maybe a function. Apply means to apply a function to a list of parameters (or in slightly different wording, run a function with some parameters). The execution of a function program can be thought of as one continuous cycle of eval/apply, for example we can eval some expression which results in a function, this function then gets applied to some parameters, some of which may themselves have been expressions we have already evaluated.</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Dec 15, 2017 at 9:46 AM, John Duffy <span dir="ltr"><<a href="mailto:jb_duffy@btinternet.com" target="_blank">jb_duffy@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi<div><br></div><div>I'm learning Erlang with the help of "Concurrent Programming in Erlang" (Second Edition). Being an electrical engineer, I'm a bit stumped by the computer science terminology of the last paragraph of 2.3 Expression Evaluation:</div><div><br></div><div>"The evaluator can be thought of as function E which reduces an expression to a ground term:  ... <E examples> ... where APPLY represents a function which applies a function to its arguments".</div><div><br></div><div>If there is someone who has this book and can translate this paragraph and the examples into simple engineer speak I would be very grateful.</div><div><br></div><div>Kind regards</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>John </div></font></span><br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>