CDISP0038E

A type mismatch exists in the following subscript slice: list or map type [low bound type : upper bound type].

Integral type expressions must be used to slice a list or a map.
Ensure that integral type expressions are used to slice the list or map.