Skip to content

Instantly share code, notes, and snippets.

# R version of
#https://hackernoon.com/functional-computational-thinking-what-is-a-monad-2adea91154e
library(magrittr)
readLines("./file1") %>% readLines()
readFileCPS <- function(path, cb){
cb(readLines(path))
}
composeCPS <- function(g,f){