The comb-like structures in a flamingo's beak are called lamellae. These act as filters that trap small organisms such as brine shrimp, algae, and tiny fish while allowing water to pass through.
The lamellae on the upper and lower mandibles interlock to form a mesh-like sieve. This captures small food items while letting larger particles escape through the gaps.