Lindenmayer system pattern for selfsimilar structures. Its dictionary (or event) maps one element to an array of child elements. The algorithm replaces iteratively (levels deep) elements by arrays of elements starting with the values in the pattern.
pattern |
starting value |
dict |
a dictionary or an event. |
levels |
number of levels |
The examples use the ()
shortcut for Event.