3 ms·
An array isn't a function -- indexing an array could be a function. But an array is a data structure. An array doesn't satisfy the requirements to be a functi
by wvenable 9mo ago
An array isn't a function -- indexing an array could be a function. But an array is a data structure. An array doesn't satisfy the requirements to be a function -- people are just confusing an array with array indexing.
- adastra22 9mo agoIn the mathematical sense a function is something that maps inputs to outputs. That’s also what an array is. But this whole thing is uninteresting because it is ultimately just a disagreement about definitions.