From: Koprowski, A. <A.K...@tu...> - 2004-11-10 10:55:18
|
> -----Original Message-----: Martin Jambon > I just played a little, and here is the result, just for fun (you > probably can find nicer implementations somewhere on the web, > and I don't know what you can do with enums here): > [...] > -----Original Message-----: Nicolas Cannasse > Well partition could be easily added to Enum Something like : > [...] > But I'm not sure we should add it to Enum module because it creates a=20 > unwelcomed dependency on the Queue module. Hello,=20 Thank you for both solutions! I think I'll indeed write my implementation of lazy lists (maybe based on Martin's proposition), I just though that it is so obvious that it should be already available somewhere.=20 Also thanks for suggestions about Enums, I wouldn't come up with this solution... but anyway I think for what I'm doing I'd rather prefer strictly functional (immutable) data structure so I'll save Enums for another time :-). Regards, Adam Koprowski ------------------------------------------------------------------------ - A.K...@tu..., ICQ: 3204612 - - The difference between impossible and possible lies in determination - - Tommy Lasorda - ------------------------------------------------------------------------ =20 |