I know how to define a producer using the imperative programming approach but I cannot find how can define a producer using the functional programming approach.
I read th