tree:

deepValues(tree)

Return the in-order exterior values of the tree as a flat array. This is a deep version of the values built-in function.

$ cat greetings.yaml
english:
  a: Hello, a.
  b: Hello, b.
  c: Hello, c.
french:
  a: Bonjour, a.
  b: Bonjour, b.
  c: Bonjour, c.
spanish:
  a: Hola, a.
  b: Hola, b.
  c: Hola, c.
$ ori deepValues greetings.yaml
- Hello, a.
- Hello, b.
- Hello, c.
- Bonjour, a.
- Bonjour, b.
- Bonjour, c.
- Hola, a.
- Hola, b.
- Hola, c.
g english/ ->english/ english/ french/ ->french/ french/ spanish/ ->spanish/ spanish/ english/a Hello, a. english/->english/a a english/b Hello, b. english/->english/b b english/c Hello, c. english/->english/c c french/a Bonjour, a. french/->french/a a french/b Bonjour, b. french/->french/b b french/c Bonjour, c. french/->french/c c spanish/a Hola, a. spanish/->spanish/a a spanish/b Hola, b. spanish/->spanish/b b spanish/c Hola, c. spanish/->spanish/c c
g 0 Hello, a. ->0 0 1 Hello, b. ->1 1 2 Hello, c. ->2 2 3 Bonjour, a. ->3 3 4 Bonjour, b. ->4 4 5 Bonjour, c. ->5 5 6 Hola, a. ->6 6 7 Hola, b. ->7 7 8 Hola, c. ->8 8
Input tree
Result

If you want to limit the number of results, see deepTake.