def core__paginate_array(array, per_page, page)
      start = (page - 1) * per_page
      array[start, per_page]
    end
def core__paginate_array(array, per_page, page)
      start = (page - 1) * per_page
      array[start, per_page]
    end
This function paginate an array and return the requested page.