Name: Anonymous 2008-06-14 10:50
How can you write the Haskell fibs in C? I mean the
fibs.
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)fibs.
fibs = 0 : 1 : zipWith (+) fibs (tail fibs)int fibs(int no){
while(no>fibslist_last){
fibslist_last++;
fibslist[fibslist_last]=
fibslist[fibslist_last-1]+fibslist[fibslist_last-2];
}
return fibslist[no];
}