"Fredrik Petersson" <[EMAIL PROTECTED]> writes: > something like [if (thenumber < index) then (index,int+1) \and break\ else > (index,int) | (index,int) <- [thelist]]
I think you need to write an explicit recursion, instead of using a list comprehension. > Can i use some help-boolean to set it false when we have counted up once? Using a fold(r|l) would be similar, but I think you'd be better advised at this point to write the recursion explicitly. -kzm -- If I haven't seen further, it is by standing in the footprints of giants _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
