Changes between Version 6 and Version 7 of StandardLibraryExtensionMethods
- Timestamp:
- 02/14/09 14:57:34 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StandardLibraryExtensionMethods
v6 v7 1 1 = Standard Library Class Extension methods = 2 2 3 The Cobra standard library adds the following extension methods to existing classes. This enable convenient expressions such as:3 The Cobra standard library adds the following extension methods to existing classes. This enables convenient expressions such as: 4 4 {{{ 5 5 #!python 6 6 for item in someList.sorted.reversed 7 7 print item 8 9 for i, item in someList.sorted.numbered 10 print i, item # i will be 0, 1, 2, ... 8 11 }}} 9 12