P336: Enumeration of all $k$-ary tree

P336: Enumeration of all $k$-ary tree
Input:
An integer $k$.
Output:
All $k$-ary trees.
Complexity:
$O(1)$ delay.
Comment:
Reference:
[Korsh1994] (Bibtex)