rem: takewhile: function (pred, seq) { /***  takewhile(pred, seq) --> seq[0], seq[1], ... until pred(seq[n]) fails  ***/ var self = MochiKit.Iter; seq = self.iter(seq); return { repr: function () { return "takewhile(...)"; }, toString: MochiKit.Base.forward("repr"), next: function () { var rval = seq.next(); if (!pred(rval)) { this.next = function () { throw self.StopIteration; }; this.next(); } return rval; } }; }, 
add: },takewhile:function(pred,seq){ var self=MochiKit.Iter; seq=self.iter(seq); return {repr:function(){ return "takewhile(...)"; },toString:MochiKit.Base.forward("repr"),next:function(){ var rval=seq.next(); if(!pred(rval)){ this.next=function(){ throw self.StopIteration; }; this.next(); } return rval; }}; },dropwhile:function(pred,seq){ 
context:     takewhile: function (pred, seq) {        /***            takewhile(pred, seq) --> seq[0], seq[1], ... until pred(seq[n])                fails        ***/        var self = MochiKit.Iter;        seq = self.iter(seq);        return {            repr: function () { return "takewhile(...)"; },            toString: MochiKit.Base.forward("repr"),            next: function () {                var rval = seq.next();                if (!pred(rval)) {                    this.next = function () {                        throw self.StopIteration;                    };                    this.next();                }                return rval;            }        };    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js