Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created January 30, 2013 00:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Raynos/53aed4d4de944e795bb2 to your computer and use it in GitHub Desktop.
Save Raynos/53aed4d4de944e795bb2 to your computer and use it in GitHub Desktop.
> var o = [1,2,3]
undefined
> var hubbed = r.hub(o)
undefined
> var xs = r.map(hubbed, function (x) { console.log("x", x })
...
> var xs = r.map(hubbed, function (x) { console.log("x", x) })
undefined
> var ys = r.map(hubbed, function (y) { console.log("y", y) })
undefined
> fold(merge([xs, ys]), function () {})
ReferenceError: merge is not defined
at repl:1:7
at REPLServer.self.eval (repl.js:109:21)
at Interface.<anonymous> (repl.js:248:12)
at Interface.EventEmitter.emit (events.js:96:17)
at Interface._onLine (readline.js:200:10)
at Interface._line (readline.js:518:8)
at Interface._ttyWrite (readline.js:736:14)
at ReadStream.onkeypress (readline.js:97:10)
at ReadStream.EventEmitter.emit (events.js:126:20)
at emitKey (readline.js:1058:12)
> r.fold(r.merge([xs, ys]), function () {})
x 1
x 2
x 3
y 1
y 2
y 3
undefined
>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment