ge-wrapper" tabindex="-1" role="main">
          <div class="page-inner">

            <section class="normal" id="section-">

<div>
This is an old version, <a href="https://mc-stan.org/docs/functions-reference/array_operations.html#reversing-functions">view current version</a>.
</div>
<div id="reversing-functions" class="section level2">
<h2><span class="header-section-number">4.6</span> Reversing functions</h2>
<p>Stan provides functions to create a new array by reversing the order of elements in an exist