This function extracts or replaces a descendant of the given node.
1 2 3
(ASTNode) The node from which to extract or replace the descendant.
(integer) The index of the descendant to extract or replace.
(ASTNode) The value to replace the descendant with.
index is a vector, the
child function is called recursively
so that descendants several levels below
node are accessible.
A single child node.
children to extract or replace all children at once.
1 2 3 4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.