Skip to content

Instantly share code, notes, and snippets.

View codegod100's full-sized avatar
๐ŸŒ
Hack the planet

nandi codegod100

๐ŸŒ
Hack the planet
View GitHub Profile
- target: garden/vera
url: https://git.anagora.org/vera/notes.git
format: foam
- target: garden/bmann
protocol: git
url: https://github.com/bmann/bmcgarden.git
format: jekyll
@codegod100
codegod100 / church.js
Last active June 12, 2021 19:24
church numerals
function church(n){
return function(f){
return function(x){
let res = x
for(let i=0;i<n;i++){
res = f(res)
}
return res
}
}