github.com/benhoyt/goawk@v1.8.1/testdata/gawk/arrayind3.awk (about)

     1  BEGIN {
     2  	# initialize cint arrays
     3          pos[0] = 0
     4          posout[0] = 0
     5          split("00000779770060", f)      # f[1] is a strnum
     6          pos[f[1]] = 1                   # subscripts must be strings!
     7          for (x in pos) {
     8                  # if x is a strnum, then the
     9                  # x != 0 test may convert it to an integral NUMBER,
    10  		# and we might lose the unusual string representation
    11  		# if the cint code is not careful to recognize that this is
    12  		# actually a string
    13                  if (x != 0)
    14                          posout[x] = pos[x]
    15          }
    16          # which array element is populated?
    17          print posout[779770060]
    18          print posout["00000779770060"]
    19  }