A bijection f with domain X (indicated by f: X → Y in functional notation) also defines a relation starting in Y and going to X (by turning the arrows around).
Continuing with the baseball batting line-up example, the function that is being defined takes as input the name of one of the players and outputs the position of that player in the batting order.