Skip to content

Instantly share code, notes, and snippets.

@aherve
Created November 23, 2016 15:03
Show Gist options
  • Select an option

  • Save aherve/ce50cd66ca9953fa5a8877c0320dce94 to your computer and use it in GitHub Desktop.

Select an option

Save aherve/ce50cd66ca9953fa5a8877c0320dce94 to your computer and use it in GitHub Desktop.
n_times = -> n,f {
n == 1 ? f : -> x { f.(n_times.(n-1,f).(x))}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment