The primary function of L cells is to secrete hormones that regulate various physiological processes. GLP-1 is involved in enhancing insulin secretion, inhibiting glucagon release, and slowing gastric emptying, making it a key player in glucose homeostasis. GLP-2 promotes intestinal growth and repair, while PYY helps regulate appetite and food intake.