Wiki

Changes between Version 6 and Version 7 of StandardLibraryExtensionMethods

Show
Ignore:
Timestamp:
02/14/09 14:57:34 (16 years ago)
Author:
Chuck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • StandardLibraryExtensionMethods

    v6 v7  
    11= Standard Library Class Extension methods = 
    22 
    3 The Cobra standard library adds the following extension methods to existing classes. This enable convenient expressions such as: 
     3The Cobra standard library adds the following extension methods to existing classes. This enables convenient expressions such as: 
    44{{{ 
    55#!python 
    66for item in someList.sorted.reversed 
    77    print item 
     8 
     9for i, item in someList.sorted.numbered 
     10    print i, item   # i will be 0, 1, 2, ... 
    811}}} 
    912