dumpUnits.frink

View or download dumpUnits.frink in plain text format


/** This program dumps all units and their associated values.  This helps to
    track dependencies of units when a unit definition changes.  The output
    can be diff'd to show the effects of any unit redefinition. */


unitNames = lexicalSort[units[]]
for u = unitNames
{
   if unit[u] conforms currency
      next
   println["$u =\t" + unit[u]]
}


View or download dumpUnits.frink in plain text format


This is a program written in the programming language Frink.
For more information, view the Frink Documentation or see More Sample Frink Programs.

Alan Eliasen was born 18233 days, 20 hours, 17 minutes ago.