3 ms·
> whether or not a procedure is a function is about as clear cut as you can get Definitely. If it returns a single value then it's a function. If it does not
by mpweiher 6y ago
> whether or not a procedure is a function is about as clear cut as you can get
Definitely.
If it returns a single value then it's a function. If it does not return a value, it's a procedure. (Pascal)
All procedures are functions (C)
All procedures and methods are functions (Swift)
A Function procedure is a series of Visual Basic statements enclosed by the Function and End Function statements. (Visual Basic)
...
- liability 6y agoI'm not sure if you mean this comment to be a joke, or.... https://en.m.wikipedia.org/wiki/Pure_function https://en.m.wikipedia.org/wiki/Pure_function