Question: is yams slang for legs?
Answer: For clarity: "Yams" are a specific potato that is shaped roughly similar to a human leg (feminine). The slang was used predominantly in the 1940s to 1960s to describe an attractive woman's legs. "Gams" means the same thing.