4
Comments
  • 1
    It's kinda transparent though
  • 0
    That's what he said.
  • 3
  • 0
    I don't know what language this is, but doesn't it have the array[-1] syntax for last element?
  • 1
    @configurator Yes, and no. The Data.Scans part is a hashtable. So i am searching in it the value the last and second last array index.

    Edit: I think i misunderstood. Yes, in something like python this would be correct, but this is golang, and its a bit more verbose.
  • 1
    @vortexman100 ah, that explains why I didn't recognize the language. I mostly use JavaScript and C#, which don't have it either, but I knew it's neither of those and reckoned many other languages do have that syntax.
Add Comment