Function flatmap
Creates a generator that iterates over a sequence, then iterates over each value in the sequence and yields the application of the map function to each value.
Parameters summary
mixed |
$iterable |
Iterable sequence of data. |
callable |
$f |
Map function to apply. |
Return value summary
Generator
|
\Generator |