Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

276
Views
Apply function to arguments or Apply arguments to function

Recently I am reading book SICP javascript. ( https://sourceacademy.org/sicpjs/1.1.4 )

And in this book ( chapter 1.1.4 ) I have a question about how function works.

function-expression(argument-expressions)

eg. square(2 + 5);

To evaluate a function application, the interpreter follows a procedure quite similar to the procedure for operator combinations described in section 1.1.3.

To evaluate a function application, do the following:

  1. Evaluate the subexpressions of the application, namely the function expression and the argument expressions.
  2. Apply the function that is the value of the function expression to the values of the argument expressions.

Where I have a question is number 2.

Before I read this book, when I use function, I just thought like pass the arguments to function.

So I have a confusion between Apply function to arguments or Apply arguments to function

This book said Apply function to arguments.

Can I get an answer why that is right and difference between them?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

There is no difference. An application applies two things together. It's just math speak, or English peculiarities. Both phrases just mean that a function call is being made.

But also, the book is being more precise than what you were thinking. Instead of just saying "arguments", it talks about "arguments' values". Because, in f(x,y), or equally (f x y), what is the function being called? After all f or x are just names of variables.

So the book says, the value of the variable f is used as the function, which is called with the value of the variable x, and of y, as the argument values.

Because there are other call disciplines, e.g. in "call by name" the variables themselves are passed in as the arguments. But Scheme (as originally used by the book) is "call by value".

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!