index.js
function hyperRepeat(store) {
  this.compile = compile;

  this.state = function(config, state) {
    var res = store.get(config.path, state);
    if (!res.completed) return false;
    return state.set(config.source, res.value);
  };

  this.children = function(config, state, children) {
    var items = state.get(config.source);
    var arr = [];
    if (!items) return arr;

    var target = config.target;
    var i, c, child;

    var path = ['state', target];

    for (i = 0; i < items.length; i++) {
      function update() {return items[i]};

      for (c = 0; c < children.length; c++) {
        child = children[c];
        if (!child) continue;
        // TODO set the key prop
        child = child.updateIn(path, update);
        arr.push(child);
      }
    }
    return arr;
  };
}
function hyperRepeat(store) {
  this.compile = compile;

  this.state = function(config, state) {
    var res = store.get(config.path, state);
    if (!res.completed) return false;
    return state.set(config.source, res.value);
  };

  this.children = function(config, state, children) {
    var items = state.get(config.source);
    var arr = [];
    if (!items) return arr;

    var target = config.target;
    var i, c, child;

    var path = ['state', target];

    for (i = 0; i < items.length; i++) {
      function update() {return items[i]};

      for (c = 0; c < children.length; c++) {
        child = children[c];
        if (!child) continue;
        // TODO set the key prop
        child = child.updateIn(path, update);
        arr.push(child);
      }
    }
    return arr;
  };
}
function hyperRepeat ( store ) { this . compile = compile ; this . state = function ( config , state ) { var res = store . get ( config . path , state ) ; if ( ! res . completed ) return false ; return state . set ( config . source , res . value ) ; } ; this . children = function ( config , state , children ) { var items = state . get ( config . source ) ; var arr = [ ] ; if ( ! items ) return arr ; var target = config . target ; var i , c , child ; var path = [ 'state' , target ] ; for ( i = 0 ; i < items . length ; i ++ ) { function update ( ) { return items [ i ] } ; for ( c = 0 ; c < children . length ; c ++ ) { child = children [ c ] ; if ( ! child ) continue ; // TODO set the key prop child = child . updateIn ( path , update ) ; arr . push ( child ) ; } } return arr ; } ; }
Initialize the 'hyper-repeat' directive

Examples:

user <- users

user <- users[0,2..8]

user <- [.featured[0..2] .famous[0..2] .others[0..2]]

@param {StoreHyper}
Initialize the hyper - repeat directive