liminal on Nostr: What a way to bring up my "deeply nested-for loops with an if statement in the center ...
What a way to bring up my "deeply nested-for loops with an if statement in the center nightmare" 🫥
i needed a printout every so often, but i didn't want to print millions of times
```
if iteration % record_every == 0:
record_array.push(fit)
```
Without if statements, its just two for loops.
```
for j in record_every:
iterate(dt)
record_array.push(fit)
```
gm ser 🥲🫡
Published at
2024-07-08 19:06:41Event JSON
{
"id": "19c3f306e08a1165d5d57ed71614140b62c04d81327e413841e792d6a3de5f0e",
"pubkey": "dc4cd086cd7ce5b1832adf4fdd1211289880d2c7e295bcb0e684c01acee77c06",
"created_at": 1720458401,
"kind": 1,
"tags": [
[
"e",
"265f615b4bdf3eef9c4a550430dc08d30510ba049870e6646bab3df0fbfb36c1",
"",
"root"
],
[
"e",
"807e6bb6a8f4dae51226fb458b4673a67a2ef5c55e8a51af3febf9024fdc81a1"
],
[
"e",
"7e48db3e55bb20a4c427164c6a666e5ef3cf0123fbda4ca8f88f2f2bcce07cb5",
"",
"reply"
],
[
"p",
"70122128273bdc07af9be7725fa5c4bc0fc146866bec38d44360dc4bc6cc18b9"
],
[
"p",
"dc4cd086cd7ce5b1832adf4fdd1211289880d2c7e295bcb0e684c01acee77c06"
],
[
"p",
"4c800257a588a82849d049817c2bdaad984b25a45ad9f6dad66e47d3b47e3b2f"
],
[
"p",
"dd664d5e4016433a8cd69f005ae1480804351789b59de5af06276de65633d319"
],
[
"p",
"72f9755501e1a4464f7277d86120f67e7f7ec3a84ef6813cc7606bf5e0870ff3"
]
],
"content": "What a way to bring up my \"deeply nested-for loops with an if statement in the center nightmare\" 🫥\n\ni needed a printout every so often, but i didn't want to print millions of times\n\n```\nif iteration % record_every == 0:\n record_array.push(fit)\n```\n\nWithout if statements, its just two for loops. \n\n```\nfor j in record_every:\n iterate(dt)\nrecord_array.push(fit)\n```\n\ngm ser 🥲🫡",
"sig": "4a38a33fdc504b79c3d639d54b2ee3d37e6673849166f02e825484f0b7c8bf17b745a4c04ac9e1d1fec64ab1732c1ada1a2f416f7023e0de7186ad1857787abd"
}