www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Patten matching example

A cute example of patten matching with algebraic data types,  in various
languages:
http://www.rosettacode.org/wiki/Pattern_Matching

Bye,
bearophile
Jan 17 2009