Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Point-free programming style

Name: Anonymous 2009-01-04 19:30

How do I write the factorial function in point-free?

fact n = foldr1 (*) [1..n]

Which is faster
add1 = 1 +
or
add1 x = 1 + x
???

Name: FrozenVoid !FrOzEn2BUo 2009-01-05 15:22

>>44
There is a use for fast Factorial or some cryptography routine(with ROR SHL and similar opcodes) but you can't embed asm in Javascript or for that matter any high-level language.
Writing in C defeats the purpose since its just asm with syntactic sugar and standard libraries.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List