The startElement
and endElement
function in gopl.io/ch5/outline2
(§5.5) share a global variable, depth
.
Turn them into anonymous functions that share a variable local to the outline
function.
ex5.12
Folders and files
Name | Name | Last commit date | ||
---|---|---|---|---|
parent directory.. | ||||