Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I like the 2nd junior version best.

    fac 0 = 1
    fac n = n * fac (n-1)


Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: