Are there benefits using a function instead of a subroutine if both subprograms can be implemented?
For simple test-problems subroutines seem slightly faster than functions, whether using the pure statement or not. Is this a rule of thumb or misleading?
Best regards,
Eduard