In programming, particularly in the context of functional programming and data processing, a "flat map" is a higher-order function that applies amap function to each element of adata structure (like a list or an array), and then flattens the result into a single structure.