You searched for:
“chiasmi”
A rhetorical construction in which the order of the words in the second of two paired phrases, clauses, etc., are in the reverse order of the first one: "The construction of chiasmi consist of inversions of the second of two parallel structures of word orders."
Examples of chiasmi:
It [marriage] may be compared to a cage: the birds without try desperately to get in, and those within try desperately to get out.
It is not my interest to pay the principal nor is it my principle to pay the interest.
Resolve to perform what you ought; perform without fail what you resolve.
Try to learn something about everything and everything about something.
The error of youth is to believe that intelligence is a substitute for experience, while the error of age is to believe that experience is a substitute for intelligence.
All misanthropes are curmudgeons, but all curmudgeons are not misanthropes.
The secret of happiness is not in doing what one likes, but in liking what one has to do.
Not all readers become leaders, but all leaders must be readers.