flat_map


Description:

public Seq<A> flat_map<A> (owned FlatMapFunc<A,G> mapper)

Returns a seq which contains the elements of the results of applying the given mapper function to the elements of this seq.

This is a stateless intermediate operation.

Parameters:

mapper

a non-interfering and stateless mapping function. if it returns an Gee.Iterator.valid iterator, the element that the iterator points is also included in the result.

Returns:

the new seq