But what about space. When dealing with large objects, functions have to copy them and process them and sometimes even produce large objects that are slightly modified than the input object. Doesn't this require lot of space?
Are we just wasting resources because memory is cheap now?
I'm not an FP expert, but I understand that objects usually are immutable, which means functions don't change them, which means that there is no need to copy them. Even if there are changes, unchanged properties would point to the respective properties of the old object, minimising memory footpint.