feat(kernel/instantiate): add helper function
This commit is contained in:
parent
f8e5753a13
commit
b6472d043e
1 changed files with 3 additions and 0 deletions
|
|
@ -20,6 +20,9 @@ expr instantiate(expr const & e, expr const & s);
|
|||
|
||||
/** \brief Replace the free variables with indices 0, ..., n-1 with s[n-1], ..., s[0] in e. */
|
||||
expr instantiate_rev(expr const & e, unsigned n, expr const * s);
|
||||
inline expr instantiate_rev(expr const & e, buffer<expr> const & s) {
|
||||
return instantiate_rev(e, s.size(), s.data());
|
||||
}
|
||||
|
||||
expr apply_beta(expr f, unsigned num_args, expr const * args);
|
||||
bool is_head_beta(expr const & t);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue