Skip to main content
flatten(list) takes a list that may contain nested lists and returns a single flat tuple with all elements at the same level.

Signature

Example

Each service declares its own set of test patterns. flatten collapses them into a single sequence for a unified test run:
The nested lists become ["./service/api/...", "./service/api/integration/...", "./service/worker/...", ...].

Notes

  • flatten recurses through all levels of nesting.
  • The result is a tuple, not a list. Functions like join that accept lists also work with tuples.