Message from JavaScript discussions

May 2017

— In that example, on first iteration, the caller would get this object:

{
tuple: {
original: {
aa: {},
ab: {},
ac: {}
},
search: {
aa: {},
ab: {},
ac: {}
}
},
loc: "aa",
existing: null,
isContainer: true,
isLast: false
}

Message permanent page

— 

Per iteration would look similar, but the tuple will be the object being iterated and loc will be the accessor

— How is this different from depth first

— Its not

— Uhm

— Order of iteration is bfs while order of traversal is dfs

— Hmm

— Iteration is not the same process as traversal?

— No

— Hmm

— Traversal is the process of adding a node to the stack, then iterating it's properties

— Iteration may not always lead to traversal though