Lewis Clark, 82, a former ambassador to Libya and a Foreign Service officer for 35 years until his retirement in 1958, died of a heart attack Saturday at his Washington home.

Mr. Clark, a career minister in the Foreign Service, transferred to Geneva, Switezrland, in 1950, where he served as U.S. representative on the United Nations advisory council for Libya. He was named ambassador to Libya in 1951 and served in that position until 1953.

Later in 1953, at the beginning of the Algerian independence movement, he was named U.S. consul general in Algiers. He remained there until 1958, whe he retired from the Foreign Service.

Mr. Clark began his career as a Chinese language officer for the Foreign Service in Peking, China, in 1925. He spent the next 10 years in China.

He then served as counsellor of the U.S. embassies in London and Paris, and, during world War II, served in this capacity at the U.S. embassy in Ottawa, Canada.

He returned to China in 1947 and remained there until 1950, the year the Communists completed their takeover.

Mr. Clark was born in Montgomery, Ala., and earned a bachelor's degree from the Marion Institute in Alabama. He then studied languages at the University of Virginia for two years. He served in the Navy in World War I.

Before joining the Foreign Service he had worked as a clerk and, later, a manager for cotton merchants.

Survivors include his wife, the former Manuelita Boldt White, of the home, and a daughter by his marriage to the late Anne Covington Clark, Anne Jelley, of Orinda and Pebble Beach, Calif., and three grandchildren.

The family suggests that expressions of smypathy be in the form of contributions to the Dacor Foreign Service Education and Welfare Fund, 1718 H St. NW, Washington, 20008.