Common English Expressions for Functions
A function is a countable noun
, so when mentioning a single function for the first time in a general context or conversation, you use the article a
to say a function
.
When referring to multiple functions, you should use the plural form, functions
.
Conversely, when referring to a function that both the speaker and the listener are familiar with, or a function with specific uniqueness, use the article the
to say the function
or the functions
.
To effectively implement a function that performs a specific task and describe it accurately, it is important to use appropriate verbs and prepositions in context.
Prepositions can often be tricky as their meanings are not always clear-cut, which can be particularly confusing for non-native English speakers.
For example, when passing arguments to a function, rather than using verbs like 'deliver' or 'give,' you should use pass
. The preposition used before the function should be to
, not 'on' or 'for.'
Let's delve into key English expressions related to functions with concrete examples and outline the essential terms you need to know for describing functions in programming.
The common verb used to deliver an argument to a function is 'deliver'.
Lecture
AI Tutor
Design
Upload
Notes
Favorites
Help
Key Phrases for Implementing and Calling Functions
implement a function
Implement is a verb meaning to actually write and make a feature or structure operational.
accept / receive / take an argument
This expression is used when a function receives values from the outside. Note that 'argument' and 'parameter' are countable nouns, so be cautious with articles and plurals.
pass an argument to a function
Pass is a verb used when transferring a value to another function or method. It is used in the structure 'pass A to B'.
return the result of execution
Return is a verb used for sending back the result of a function's process, and it can also be used as a noun.
return a value from a function
This is a common expression used when a function sends a value outward.
call a function
Call is a basic verb used when executing a defined function.
invoke a function
Invoke is used when executing a function indirectly through a reference rather than directly calling it.
execute / run a function
Execute and run are used to mean actually making a function or program operate.