36 karma · joined August 11, 2018
I think this site probably deals more with the cryptic crosswords, so that aside probably made more sense for regular readers.
{ [Key in KeysType]-?: ... }
TIL that you can disable ? and readonly in mapped types using -. So in the above code, every Key will be mandatory (-?) even if the original one in KeysType was optional.source: https://www.typescriptlang.org/docs/handbook/2/mapped-types....
What we want is the probability for at least one other place other than ours to have life. This would be 1 - (1-p)^N, which does tend to 1 as N gets arbitrarily large.
To get that formula: (1-p) is the probability that life does not exist in a place, so (1-p)^N is the probability that ALL places where life is possible, has no life. Therefore, 1-(1-p)^N is the probability of the opposite of that (where at least one place has life).
[0] https://developers.google.com/web/updates/2020/10/http-cache...
[1] https://developer.mozilla.org/en-US/docs/Web/Privacy/State_P...
As a non mathematician sometimes I wonder if this substitution is causing me to misunderstand something else about them.
If expansion never stops accelerating, one day in the far future it will overcome all the other fundamental forces and everything will be torn apart in a Big Rip.
For more complicated logic, I think working with the @mounted event might work.
If you run the program once and not observe anything happening, that means you know you're top level. Then you resolve to not rerun the program.
If you run the program once and observe the black sphere, then run it again and not see the black sphere, you know you're level 2. You resolve to not rerun the program. And on it goes.
EDIT: box to sphere.
Do you mean:
for (let elem of arr) { ... }
Unless this is a joke about writing in Java & C++ (for which the colon syntax is valid) instead of javascript.