title: Ember.js previous/next element of an array
body: <p>I want to make a queue-like array, and I don't know how to move to the next element. I'm not using a for loop to iterate, because if the element of the array is deleted there is a problem.</p>
  
  <p>What Can I do?</p>
  
  <p>EDIT:
  I should put an example code:
  Creating array in a controller:</p>
  
  <pre><code>listOfItems:[{name:'Jack',specialty:'engineer'},{name:"Eva",speciality:"doctor"}]
  </code></pre>
  
  <p>next setting the values to the handlebars</p>
  
  <pre><code>counter:0,
  actions:{
      openModal()
      {
          this.set('openModal',true);
          this.set('nameOfPerson',this.get('listOfItems.'+counter+'.name');
      }
      nextValue()
      {
           this.incrementProperty('counter'); //I want to implement there
                                              //something like next Object
      }
      previousValue()
      {
          this.decrementProperty('counter'); //  previous object there
      }
      acceptValues()
      {
          //don't know how to do a delete object there
      }
  }
  </code></pre>