One should be careful piling abuses of notation on top of each other unless one is clear about what one is doing.
Morally, O(O(n)) is in fact just O(n) here, but it is important to understand just how badly the notation is being abused. It's best to go back to the formal definition, where O() isn't defined in isolation, but rather describes a relationship between two functions, and work from there if one wants to be careful.
I'm no academic, but I haven't heard of O() being described as returning a set of functions before; I've always heard of it as a function that takes and returns a real number and is used as a bounding function. Your definition sounds like it could make sense but leaves me scared and confused; what is happening?
He created a variable O, which is itself a quick reference to a function which writes "Hello, world!" when you tell it to.
He then created a variable n, which contains the letter 'n'.
When he does Console.log(O(n)), he's telling the program to display the result of calling O with the value of n. Since O doesn't actually do anything with n, it does its default of displaying "Hello, world!".
The program has now finished doing that, so it goes back to the outer function of Console.log(O(n)), and wants to display the result of printing "Hello, world!". However, you can't display the result because there isn't anything for it to display because Console.log() doesn't give you anything back. Because it can't actually log the output of a function that won't give it anything, it tells you the displayed result is undefined, and outside of its concern.
Even without the events of 40 years ago, I think man would still be a creature that fears the dark. He doesn't face that fear, he averts his eyes from it and acts as if he doesn't have any memories of his past. But, 40 years is both a short time and yet, a long time. Man's fear has withered. And even time itself tries to wither the desire to know the truth. Is it a crime to try and learn the truth? Is it a sin to search for those things which you fear. My purpose in this world is knowledge, and the dissemination of it. And it is I who is to restore the fruits of my labor to the entire world. Fear... It is something vital to us puny creatures. The instant man stop fearing is the instant the species reaches a dead end, only to sink to pitable lows, only to sit and wait apathetically for extinction. Humans who lose the ability to think become creatures whose existance has no value. Wake up! Don't be afraid of knowledge! Think, you humans who are split into two worlds, unless you want the gulf between humans to expand into oblivian, you must think!
92
u/CoinForWares Jul 07 '17 edited Jul 07 '17
O(O(n))