Why Nostr? What is Njump?
2024-07-08 19:24:27
in reply to

mleku on Nostr: in go a similar syntax could be: arr := []int{1, 2, 3, 4} for _, v := range arr { v ...

in go a similar syntax could be:

arr := []int{1, 2, 3, 4}
for _, v := range arr {
v *= 2
}

that's an example of the per-loop scoped named variable
Author Public Key
npub1fjqqy4a93z5zsjwsfxqhc2764kvykfdyttvldkkkdera8dr78vhsmmleku