an></span> <a href="#type-term">term</a></span></code></div><div class="spec-doc"><p>`rewrite_top_down f t` rewrites the term t by applying the rule f top-down.</p></div></div><div class="odoc-spec"><div class="spec value" id="val-rewrite_accum" class="anchored"><a href="#val-rewrite_accum" class="anchor"></a><code><span><span class="keyword">val</span> rewrite_accum : 
  <span>init:<span class="type-var">'a</span> <span class="arrow">&#45;&gt;</span></span>
  <span>f:<span>( <span><span class="type-var">'a