reusablefunction
nounUK /ˌriːˈjuːzəbl ˈfʌŋkʃn/
US /ˌriˈjuzəbl ˈfʌŋkʃn/
A reusable function is a small set of instructions you can use again and again.
Instead of writing the same code five times, she made a reusable function to do the job.
RELATED WORDS
OTHER MEANINGS
2. A function written once and called from many places in a program.
The reusable function saved the team hours of copying and pasting.
3. A building block in programming that keeps code short and tidy.
Good programmers turn repeated steps into a reusable function.
4. A named piece of code that can be used in different projects.
He added the reusable function to his toolbox for future games.