1 var define = require("../define").define, 2 base = require("../base"); 3 4 /** 5 * @class Base class for all collections 6 * @name Iterable 7 * @memberOf comb.collections 8 */ 9 var Iterable = define(null, { 10 instance : { 11 /**@lends comb.collections.Iterable.prototype*/ 12 13 /** 14 * Filter items from a collection 15 */ 16 filter : function(){ 17 throw new Error("Not Implemented"); 18 }, 19 20 /** 21 * Loop through the items in a collection 22 */ 23 forEach : function(){ 24 throw new Error("Not Implemented"); 25 }, 26 27 /** 28 * Determine if every item in a collection meets the criteria 29 */ 30 every : function(){ 31 throw new Error("Not Implemented"); 32 }, 33 34 /** 35 * Map every item in a collection 36 */ 37 map : function(){ 38 throw new Error("Not Implemented"); 39 }, 40 41 /** 42 * Determing if some items in a colleciton meet the criteria 43 */ 44 some : function(){ 45 throw new Error("Not Implemented"); 46 }, 47 48 /** 49 * Reduce a collection 50 */ 51 reduce : function(){ 52 throw new Error("Not Implemented"); 53 }, 54 55 /** 56 * Reduce a collection starting from the right most position 57 */ 58 reduceRight : function(){ 59 throw new Error("Not Implemented"); 60 } 61 } 62 }); 63 64 module.exports = exports = Iterable;