s in patt. </td></tr>
    <tr><td><code class="mendoza-code">(replace patt subst ?tag)</code> </td> <td> Replaces the captures produced by patt by applying subst to them. If subst is a table or struct, will push <code class="mendoza-code">(get subst last-capture)</code> to the capture stack after removing the old captures. If a subst is a function, will call subst with the captures of patt as arguments and push the result to the capture stack. Otherwise, will push subst literally to the capture stack. </td>