Visitor pattern: Difference between revisions
m
→{{header|Python}}
(Add Python) |
|||
Line 186:
=={{header|Python}}==
This is based in the [[wp:Visitor_pattern|Wikipedia]] Python example, but uses structural pattern matching instead of multiple visit methods.
<syntaxhighlight lang="python">
|