LCKB
Totally new to this - Printable Version

+- LCKB (https://lckb.dev/forum)
+-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109)
+--- Forum: Programmers Gateway (https://lckb.dev/forum/forumdisplay.php?fid=196)
+---- Forum: Coders Talk (https://lckb.dev/forum/forumdisplay.php?fid=192)
+---- Thread: Totally new to this (/showthread.php?tid=662)

Pages: 1 2


- someone - 02-12-2012


Do you think C++ has a darn syntax try Functional Programming (I only posted Haskell), Wondering who is a Haskell fan:

length :: [a] -> Integer
length [] = 0
length (x:xs) = 1 + length xs

This translates:

integer length(list ){
if(list.is_empty)
return 0;
return 1+length(list.remove_first_element);
}

 

No wonder the Haskell has a Lazy evaluation.