"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
This really sounds a lot like home work. :)
-- Lennart
Fredrik Petersson wrote:
hi again... :)
Ok assume i got this list of tuples [(10,1),(20,2),(30,3)]
where i in (i,j) is a index,
i want to go through the list and add a number witch matches the best index.
Like 18 should give me [(10,1),(