Last active
August 29, 2015 14:19
-
-
Save raine/55a686f2932b1e4f3f13 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var R = require('ramda'); | |
var trace = require('treis'); | |
var xs = [1, 2, 3]; | |
function add(a, b) { | |
return a + b; | |
} | |
trace('reduce', R.reduce)(trace(add), 10, xs); // => 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment