In List§

See primary documentation in context for method flatmap

method flatmap(List:D: &code --> Seq:D)

Convenience method, analogous to .map(&block).flat.

In Any§

See primary documentation in context for method flatmap

method flatmap(&block, :$label)

Convenience method, analogous to .map(&block).flat.