ul><li><p class="paragraph">Example: Consider a history in order <code class="lang-kotlin">[first, second, second, third, forth]</code> where we are navigating to <code class="lang-kotlin">fifth</code>.</p></li><li><p class="paragraph">A <code class="lang-kotlin">PopToFragment(second)</code> call will make history <code class="lang-kotlin">[first, fifth]</code>.</p></li><li><p class="paragraph">A <code class="lang-kotlin">PopToFragment(second, all = false)</code> call will make history <code class="lang-kot