Changes between Version 1 and Version 2 of StandardLibraryExtensionMethods
- Timestamp:
- 02/04/09 04:02:13 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StandardLibraryExtensionMethods
v1 v2 11 11 #!python 12 12 namespace Cobra.Lang 13 14 extend System.Object 15 16 def toTechString as String 17 18 def toPrintString as String 19 20 21 extend String 22 23 def split(chars as List<of char>) as List<of String> 24 test 25 s = 'a,b:c:d,e,f' 26 assert s.split([c',', c':']) == ['a', 'b', 'c', 'd', 'e', 'f'] 27 28 def split(chars as IList<of char>) as List<of String> 13 29 14 30 extend System.Collections.IList … … 25 41 26 42 namespace Cobra.Lang 43 44 extend IEnumerable<of T> 45 46 def toList as List<of T> 47 return List<of T>(this) 27 48 28 49 extend IList<of T>