3 ms·
Is the data changing or the function changing?
by dotancohen 1y ago
Is the data changing or the function changing?
- odo1242 1y agoIn a functional language, neither (though new data is created as a result of running the function, technically this is guaranteed to not affect the inputs due to the function having to be pure) (perhaps this is excessively pedantic)
- hexasquid 1y agolet's just map pedantic->precise and call it a day :)
- dotancohen 1y agoWhen running the routine, is it typically the function that changes or the input data that changes? If it's the same function running on different data, then you are applying the function to the data. If it's the same data running in a different function, then you are applying the data to the function.