Version française
Home     About     Download     Resources     Contact us    
Browse thread
ackermann test
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: skaller <skaller@u...>
Subject: Re: [Caml-list] ackermann test
On Wed, 2005-02-09 at 15:09, Michael Walter wrote:
> Where can I find the C code you are using?

int ack(int x, int y) {
  return x==0? y+1: (y==0? ack(x-1,1):ack(x-1,ack(x,y-1)));
}

-- 
John Skaller, mailto:skaller@users.sf.net
voice: 061-2-9660-0850, 
snail: PO BOX 401 Glebe NSW 2037 Australia
Checkout the Felix programming language http://felix.sf.net