This file contains hidden or 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
function map(f) { | |
return function(rf) { | |
return function(result, item) { | |
const [new_rf, new_result] = rf(result, f(item)) | |
return [map(f)(new_rf), new_result] | |
} | |
} | |
} | |
function takeNth(n, state = n) { |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.