Data source: http://rosettacode.org/wiki/Constrained_genericity