{ "@context": [ "https://www.w3.org/ns/activitystreams", { "ostatus": "http://ostatus.org#", "atomUri": "ostatus:atomUri", "inReplyToAtomUri": "ostatus:inReplyToAtomUri", "conversation": "ostatus:conversation", "sensitive": "as:sensitive", "toot": "http://joinmastodon.org/ns#", "votersCount": "toot:votersCount" } ], "id": "https://dice.camp/users/thekernelinyellow/statuses/110830743680706519", "type": "Note", "summary": null, "inReplyTo": null, "published": "2023-08-04T09:55:39Z", "url": "https://dice.camp/@thekernelinyellow/110830743680706519", "attributedTo": "https://dice.camp/users/thekernelinyellow", "to": ["https://www.w3.org/ns/activitystreams#Public"], "cc": [ "https://dice.camp/users/thekernelinyellow/followers", "https://enterprise.lemmy.ml/c/tenforward", "https://enterprise.lemmy.ml/c/tenforward/followers" ], "sensitive": false, "atomUri": "https://dice.camp/users/thekernelinyellow/statuses/110830743680706519", "inReplyToAtomUri": null, "conversation": "tag:dice.camp,2023-08-04:objectId=29969291:objectType=Conversation", "content": "
@tenforward Variable never resetting at refresh
Hi! I'm using a variable to count elements in my generator but every time I generate a new character, the counter's value carries on from the previous one. Is there a function to reset it (I set it to 0 at the beginning of the file)
", "contentMap": { "it": "@tenforwardVariable never resetting at refresh
Hi! I'm using a variable to count elements in my generator but every time I generate a new character, the counter's value carries on from the previous one. Is there a function to reset it (I set it to 0 at the beginning of the file)
" }, "attachment": [], "tag": [ { "type": "Mention", "href": "https://enterprise.lemmy.ml/c/tenforward", "name": "@tenforward@enterprise.lemmy.ml" } ], "replies": { "id": "https://dice.camp/users/thekernelinyellow/statuses/110830743680706519/replies", "type": "Collection", "first": { "type": "CollectionPage", "next": "https://dice.camp/users/thekernelinyellow/statuses/110830743680706519/replies?only_other_accounts=true&page=true", "partOf": "https://dice.camp/users/thekernelinyellow/statuses/110830743680706519/replies", "items": [] } } }