Message from JavaScript discussions

September 2017

— Not actual values


Currently it backtracks for every item... I might be able to have it clone all in one go if I use an interval tree for paths instead

— Wait, not diff

— Check

— It traverses into all objects, looks at all properties, no matter how deep

— Then when true comes out of your callback, it saves that path as an array of accessors

— After the whole object was traversed, it goes through the saved paths and reconstructs them in a clone

Message permanent page


((x, i) => x(x, i))
((x, i) => (console.log("Hi"),
i < 10 && x(x, i + 1)), 0)

— This is what I made today

— My *attempt* at doing something useful with Y-combinator

— What's it do?

— Prints 11 times though