Description: Express a restricted function as a mapping. (Contributed by Glauco Siliprandi, 23-Oct-2021)