Should the FlatMap and other method should be able to return another type so it can be transformed and chained to another type like in Lo library?
Here is the description from Lo
// FlatMap manipulates a slice and transforms and flattens it to a slice of another type.
// The transform function can either return a slice or a nil
, and in the nil
case
// no value is added to the final slice.