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: Anonymous 2009-01-05 15:18

>>40
depends, you can make it fairly compact with macros, but usually, asm tends to be larger than the usual high level language code, not to mention not portable, but if you do need speed or need to do low level operations, then you'll have to use it.
>>42
JIT tends to be slower than code generated by a decent native code compiler, but it depends on the actual code you'll be running

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