(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
var Tree = exports.Tree = function(value, branches) { | |
// @param: value => the value held by this node in the tree | |
// @param: branches => the child nodes of this tree | |
// @returns: the Tree | |
this.value = value | |
this.branches = branches | |
} | |
Tree.unfold = function(seed, transformer) { | |
// @param: seed => the initial seed value for constructing the tree |