substitute<A extends AST> function

A substitute<A extends AST>(
  1. AST ast,
  2. Iterable<AST> from,
  3. Iterable<AST> to
)

Implementation

A substitute<A extends AST>(AST ast, Iterable<AST> from, Iterable<AST> to) =>
    currentContext.substitute(ast, from.toList(), to.toList()) as A;