Skip to content

Instantly share code, notes, and snippets.

View polgfred's full-sized avatar

Frederick Polgardy polgfred

  • Colorado Springs, CO
View GitHub Profile
@staltz
staltz / introrx.md
Last active May 7, 2024 09:38
The introduction to Reactive Programming you've been missing
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