Document : add `indexToPosition` with doc + test