Wiki
Show
Ignore:
Timestamp:
03/20/10 04:42:28 (2 years ago)
Author:
Chuck.Esterbrook
Message:

Improvements to the How-To's.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • cobra/trunk/HowTo/180-UseLists.cobra

    r2216 r2335  
    230230        assert names.indexOf('foo', 1, 2) == -1  # start at 1, search 2 items 
    231231         
    232         # left off on .insertRange 
     232        # TODO: left off on .insertRange 
    233233         
    234234        # additional methods. search web for "msdn generic list" 
     
    269269        require .count > 0 
    270270        return this[.count // 2] 
     271 
    271272 
    272273# a subclass with specific type 
     
    289290        return leftMost 
    290291 
     292 
    291293# a generic subclass with a type constraint is even better, 
    292294# because then you can specify a type parameter when using it