Changeset 2335 for cobra/trunk/HowTo/180-UseLists.cobra
- Timestamp:
- 03/20/10 04:42:28 (2 years ago)
- Files:
-
- 1 modified
-
cobra/trunk/HowTo/180-UseLists.cobra (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
cobra/trunk/HowTo/180-UseLists.cobra
r2216 r2335 230 230 assert names.indexOf('foo', 1, 2) == -1 # start at 1, search 2 items 231 231 232 # left off on .insertRange232 # TODO: left off on .insertRange 233 233 234 234 # additional methods. search web for "msdn generic list" … … 269 269 require .count > 0 270 270 return this[.count // 2] 271 271 272 272 273 # a subclass with specific type … … 289 290 return leftMost 290 291 292 291 293 # a generic subclass with a type constraint is even better, 292 294 # because then you can specify a type parameter when using it



