User Tools

Site Tools


at-m42:lecture4

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
at-m42:lecture4 [2009/04/09 18:38] eechrisat-m42:lecture4 [2011/01/14 12:45] (current) – external edit 127.0.0.1
Line 73: Line 73:
 Formatted output is achieved with the ''printf'' method call. The formal description of ''printf'' is: Formatted output is achieved with the ''printf'' method call. The formal description of ''printf'' is:
 <code groovy> <code groovy>
-printf(Strinf format, List values)+printf(String format, List values)
 </code> </code>
 Example Example
Line 308: Line 308:
  
 <code groovy l> <code groovy l>
-def players = dng.keyset().sort()+def players = dng.keySet().sort()
 def carriedItems = dng['Chris'].size() def carriedItems = dng['Chris'].size()
 </code> </code>
at-m42/lecture4.1239302306.txt.gz · Last modified: 2011/01/14 12:25 (external edit)