rem: islice: function (seq/*, [start,] stop[, step] */) { /***  islice(seq, [start,] stop[, step])  --> elements from seq[start:stop:step] (in Python slice syntax)  ***/ var self = MochiKit.Iter; var m = MochiKit.Base; seq = self.iter(seq); var start = 0; var stop = 0; var step = 1; var i = -1; if (arguments.length == 2) { stop = arguments[1]; } else if (arguments.length == 3) { start = arguments[1]; stop = arguments[2]; } else { start = arguments[1]; stop = arguments[2]; step = arguments[3]; } return { repr: function () { return "islice(" + ["...", start, stop, step].join(", ") + ")"; }, toString: m.forward("repr"), next: function () { var rval; while (i < start) { rval = seq.next(); i++; } if (start >= stop) { throw self.StopIteration; } start += step; return rval; } }; }, 
add: },islice:function(seq){ var self=MochiKit.Iter; var m=MochiKit.Base; seq=self.iter(seq); var _142=0; var stop=0; var step=1; var i=-1; if(arguments.length==2){ stop=arguments[1]; }else{ if(arguments.length==3){ _142=arguments[1]; stop=arguments[2]; }else{ _142=arguments[1]; stop=arguments[2]; step=arguments[3]; } } return {repr:function(){ return "islice("+["...",_142,stop,step].join(", ")+")"; },toString:m.forward("repr"),next:function(){ var rval; while(i<_142){ rval=seq.next(); i++; } if(_142>=stop){ throw self.StopIteration; } _142+=step; return rval; }}; },imap:function(fun,p,q){ 
context:     islice: function (seq/*, [start,] stop[, step] */) {        /***            islice(seq, [start,] stop[, step])  --> elements from                seq[start:stop:step] (in Python slice syntax)        ***/        var self = MochiKit.Iter;        var m = MochiKit.Base;        seq = self.iter(seq);        var start = 0;        var stop = 0;        var step = 1;        var i = -1;        if (arguments.length == 2) {            stop = arguments[1];        } else if (arguments.length == 3) {            start = arguments[1];            stop = arguments[2];        } else {            start = arguments[1];            stop = arguments[2];            step = arguments[3];        }        return {            repr: function () {                return "islice(" + ["...", start, stop, step].join(", ") + ")";            },            toString: m.forward("repr"),            next: function () {                var rval;                while (i < start) {                    rval = seq.next();                    i++;                }                if (start >= stop) {                    throw self.StopIteration;                }                start += step;                return rval;            }        };    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js