Write a function you can call again - GPU Programming | Zoonk
Write a function you can call again
Define a function with parameters, call it with arguments, and use its return value. Separate the reusable calculation inside the function from the code that asks for the result.