The Y combinator

Taken from https://gist.github.com/drewlesueur/3001897
Implementation of factorial
Remove some unneeded parentheses
Function REPEAT (list of c repeated n times)