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-06 12:10

>>74
a Lookup table" a data structure, usually an array or associative array, often used to replace a runtime computation with a simpler array indexing operation".
 its implementation of Object which contains data(which is more  versatile but slower then arrays) into array.
a={a:'a',b:exit(),c:22} maps to ['a',exit(),22]
An Array:
In computer science an array[1] is a data structure consisting of a group of elements that are accessed by indexing. In most programming languages each element has the same data type and the array occupies a contiguous area of storage.

Despite what http://dis.4chan.org/read/prog/1231209853/24,26
 says, Objects use arrays because they are faster then any hashtables.
and Array is abstraction of
jmp x,return x.value
which is my switch statement does directly and twice as fast.

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