rem: groupby_as_array: function (iterable, /* optional */ keyfunc) { /***  Like groupby, but return array of [key, subarray of values]  ***/ var m = MochiKit.Base; var self = MochiKit.Iter; if (arguments.length < 2) { keyfunc = m.operator.identity; }  iterable = self.iter(iterable); var result = []; var first = true; var prev_key; while (true) { try { var value = iterable.next(); var key = keyfunc(value); } catch (e) { if (e == self.StopIteration) { break; } throw e; } if (first || key != prev_key) { var values = []; result.push([key, values]); } values.push(value); first = false; prev_key = key; } return result; }, 
add: },groupby_as_array:function(_176,_177){ var m=MochiKit.Base; var self=MochiKit.Iter; if(arguments.length<2){ _177=m.operator.identity; } _176=self.iter(_176); var _178=[]; var _179=true; var _180; while(true){ try{ var _181=_176.next(); var key=_177(_181); } catch(e){ if(e==self.StopIteration){ break; } throw e; } if(_179||key!=_180){ var _182=[]; _178.push([key,_182]); } _182.push(_181); _179=false; _180=key; } return _178; },arrayLikeIter:function(_183){ 
context:     groupby_as_array: function (iterable, /* optional */ keyfunc) {        /***            Like groupby, but return array of [key, subarray of values]        ***/        var m = MochiKit.Base;        var self = MochiKit.Iter;        if (arguments.length < 2) {            keyfunc = m.operator.identity;        }        iterable = self.iter(iterable);        var result = [];        var first = true;        var prev_key;        while (true) {            try {                var value = iterable.next();                var key = keyfunc(value);            } catch (e) {                if (e == self.StopIteration) {                    break;                }                throw e;            }            if (first || key != prev_key) {                var values = [];                result.push([key, values]);            }            values.push(value);            first = false;            prev_key = key;        }        return result;    },
meta: 8607	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/8607/ad067b3f5d648d6df90ec6fb2b79f0027612a307/MochiKit.js/buggy/trunk/lib/MochiKit.js