func AppleMap(in <-chan Apple, out chan<- Apple, fn func(Apple) Apple) {
	for v := range in {
		out <- fn(v)
	}
	close(out)
}
// AppleMap transforms a stream of Apple by applying a function fn to each item in the stream.
// When the sender closes the input channel, the output channel is closed then the function terminates.
//
// It is part of the Plumbing function suite for Apple.
AppleMap transforms a stream of Apple by applying a function fn to each item in the stream.
When the sender closes the input channel, the output channel is closed then the function terminates.

It is part of the Plumbing function suite for Apple.
// AppleMap transforms a stream of Apple by applying a function fn to each item in the stream . // When the sender closes the input channel the output channel is closed then the function terminates . // // It is part of the Plumbing function suite for Apple .
func AppleMap(in <-chan Apple, out chan<- Apple, fn func(Apple) Apple) {
	for v := range in {
		out <- fn(v)
	}
	close(out)
}
func AppleMap ( in <- chan Apple , out chan <- Apple , fn func ( Apple ) Apple ) { for v := range in { out <- fn ( v ) } close ( out ) }
AppleMap transforms a stream of Apple by applying a function fn to each item in the stream.
AppleMap transforms a stream of Apple by applying a function fn to each item in the stream .