by mabster · 1y ago · 0 comments
E.g. X is a list of strings Translate X to a list of indices Translate X back to a list of strings.
In that paragraph the input and output types are the same, but not complains about the second line.
I always have to introduce a variable with a new name.
Even in rust you have to be explicit about doing the same thing with an extra "let" statement.