This has the same functionality as the "reverse" function that was implemented in the "config" package, but adapted to the new language type system.