antrion
How to Draw Invisible Programming Concepts – Part 1
EasyJet to offset carbon emissions from all its flights
≫ U = 1e-6/60 * kat
U = 1.66667e-8 kat
Because now it does this ≫ 1 kat -> U
1 kat -> U
= 1 kat[0]: http://twistedoakstudios.com/blog/Post2644_grovers-quantum-s...
edit: I just thought, I could make a function, bind that to a variable and regen the generator again and again
The second option could be a solution, but the specific case was reusing a variable `const nums = iu.iterate(x => x+1, 1)`, and quite extensively. (It's just a helper function to make a list of all natural numbers)
It would be so much nicer if I could just reuse this variable throughout my code
Ask HN: JS's for-of loop conceptually flawed, or is it just me?
When working with generators, two identical for-of loops don't show the same behaviour. Specifically, the first one will behave as expected, whereas the second one will terminate immediately. What is this?I know that the iterator `g` will signal the value `done` after the first loop, but this behaviour was unexpected and really counterintuitive to meNote: contrary to this example, for-of loops...
Thank you for your constructive comment!
So I set out to make a library that makes type checking just a little bit easier. I hope that next time we take part in that competition, this will save us some time
What do you think of it?