- 1
- 2
- 3
- 4
- 5
- 6
- 7
function main()
{
const iterable = function* () { yield* [1,2,3]; }();
for (const v of iterable)
print("v =", v);
}
Нашли или выдавили из себя код, который нельзя назвать нормальным, на который без улыбки не взглянешь? Не торопитесь его удалять или рефакторить, — запостите его на говнокод.ру, посмеёмся вместе!
−4
function main()
{
const iterable = function* () { yield* [1,2,3]; }();
for (const v of iterable)
print("v =", v);
}
я вам говнокод принес. только нахрена я сам не знаю... https://godbolt.org/#z:OYLghAFBqd5QCxAYwPYBMCmBRdBLAF1QCcAaP ECAMzwBtMA7AQwFtMQByARg9KtQYEAysib0QXAGx 8BBAKoBnTAAUAHpwAMvAFYTStJg1AEAngAdMC5MT xmCpJfWQE8Ayo3QBhVLQCuLBhAAJlIPABk8BkwAO X8AI0xiEAB2UjNUBUJXBm8/AOC0jKyBCKjYlgSk1MdMZ2yhAiZiAlz/QJCauoEGpoJSmPjElIdG5tb8jtG%2ByIGKoeSASg dUX2Jkdg4qXwYuhgBqFiZIiAWAUg0AQVPkgCFzi7 3HvbQGBQI9wkSmOPo904BmAAiey2OxcAgAVHsAPo nP63PYmPCYWjoKGnACsNy4pBC/0xgIBN3hgJORPu9yeIJIewgLzeewAbntUFQPgQvj 9MGdLlSqWYbIIIKcgkFmQDCaLSEyzv87pdroCOEt aJwMbxAhwtKRUJwACrmTAiGx2PbRJguRmYPYKFZr a0i/48UgETTKpYAa2CGIAdEEABxBf7%2BgCcABYuAGuP 8QyH9Jwwxq3TrOLwFCANC63Us4LAkHgyBQ6agWGY 6IlzWx9YbjbZ3ubLdbvKXy8Q9hofR2BZggho9gAp ACSetpAHFPAteJh8EQbOg9PxBCIxOwuGGZIJFCp1 FqdHpOuDAhAPONAjjwjNypU9OlMofTzeiof%2Ble hjiD/Upg/3yjaoees0L6DEk75fj4bT7lMQFzCBSwEMQmCYHg8 7cMq8YcOqpCatquocGEYQAGoALJ7IOABKewEciAD uiR7AaFi1qaDZ4FaezNmW9Bth2XYIb2A7DmOE60r ghA0o6OLsSWnF0RJk5ZruCxLAgmBMFgSQnKQXoRj 6saxhi/wYmuGhBBiQboYmWHJrhaYZgpWg5jAUBORASCYKot S%2BLO5CUE0wAKMohgokICCoNRmrOmgLYGIegVRL QIVhdhvBRTJSQEFY0IaFl0K9tCwDIKQqWtgA8l5i Xhcm7m1BcxD%2BamoQecgDT4JqvCLsIojiGuG7yE oajJroOIGEYICmBYVgmvYtB4HE6aQEsqB2Nk6YcG mdrrJBrVxcFoWVahLoIRszrUcQTBmJwPAqmqSa7i mHDYE1Xk0gxRrWHWZoWqxTbSa27adj63b8UOI4QO OCy0q9TH1l9VrSqJs5/EGXDya6imeiA/xBD6yRcMkkgYskGjJE6kjE3GqocJZLApBiVl3TZD h2WjDmkLmiAoL9XE%2BcW0VDBlyA5dleUFXwdAcs Q6YQHEyZxJETQmJdKUlmwgglQwtCK3dWCHEY4jaw Wf7fat2rVcgXnHbwkQcpT2ozXEZ3ECY3hYErh14D TqFLFQBj%2BVRmDUSVFgRe1sjLt164dVuA13UN%2 BiGMYhqTXW%2BizfNmlLYeq1pr%2BuzuAwXjgfk5 4F9B144rexQ5EXZ6FHe2Rl2%2BDi5/%2BYF5LXH7dFBl7AZBvTfiMvSN7ByyrJtOLwYhSv XRht04dWjHvcxsM/Xz3EA0DfYg0JEMQFDS8w428MzuJyPShxf1ybwLPu qQKlqUMmmU9T3r0/Pa1M5mN9KVpmPY7j%2BNCbE1JuTdC/w568EZt/GeQQIH3WvtmJYVpJbZBAGGIAA%3D%3D%3D
ASD_77 16.06.2022 18:21 # 0
Soul_re@ver 16.06.2022 18:37 # 0
guest6 16.06.2022 20:42 # 0
Soul_re@ver 16.06.2022 18:38 # 0
guest6 16.06.2022 18:47 # 0
ASD_77 16.06.2022 18:48 # 0
3.14159265 16.06.2022 22:52 # 0
ASD_77 17.06.2022 02:09 # 0