Hacker News new | ask | show | jobs
by tonyedgecombe 2959 days ago
If you want another I did it purely with Lambdas in C# [1].

[1] https://github.com/tonyedgecombe/functionalfizzbuzz/blob/mas...

2 comments

My python teacher asked us an implementation of the factorial function.

I did almost the same as you, bootstrapping almost every constructs in python lambdas, and then, before handing it to him, I put it all on one line.

But I'm a good person, in a comment above that line, I copy pasted the same line with 'lambda' replaced by 'λ'.

(I did not use church numerals and there were no strings involved)

wow, you weren't kidding. you bootstrapped all your constructs from pure lambda-calculus!

I award you Best Use of Dynamic.