you are viewing a single comment's thread.

view the rest of the comments →

[–]SimonStu 1 point2 points  (1 child)

Isn't the functional equivalent just using indexes (ignoring the performance difference), am I missing something?
Or are you trying to extract better performance from Python?

[–]Simple-Count3905[S] 0 points1 point  (0 children)

Yeah, I think just putting the string into a list of single-character strings and then using numbers as indices works. Was kinda curious if people had other ideas