P
pauldepstein
Suppose I have a function f from integers to integers. Besides
mapping x to f(x) the function does lots of other things as well -- for
example f displays a message on screen etc.
I then want to set y = f(5).
However, all I want to do is to replace y by the value returned by
f(5). I don't want another message on screen and whatever else f does.
How is this problem solved? What do I do if I am only interested in
the value returned by a function and not in all the other stuff that
the function does?
Thank you,
Paul Epstein
mapping x to f(x) the function does lots of other things as well -- for
example f displays a message on screen etc.
I then want to set y = f(5).
However, all I want to do is to replace y by the value returned by
f(5). I don't want another message on screen and whatever else f does.
How is this problem solved? What do I do if I am only interested in
the value returned by a function and not in all the other stuff that
the function does?
Thank you,
Paul Epstein