++ed by:

1 non-PAUSE user.

Konstantin S. Uvarin
and 2 contributors

This is really a stupid example. It reads (string, int, int) triads from STDIN and applies simple rules to them:

  • string must be a valid identifier;

  • it must be unique;

  • first int must be nonzero;

  • second int must be divisible by the first one.

If these conditions are met, a value is added to a global hash that is printed at the end.