On 07/04/11 09:06, Paul Isambert wrote:
> 
> Problem 2: -- A question, rather.

Missed this, earlier.

> The manual says you're in charge of ensuring that in
> "node.insert_after(H, N, x)", N is in the list denoted by H. The thing
> is, H doesn't seem to matter at all, unless it's nil:

Actually H is also useful if N is nil (that is a tail-append the list
that starts at H), but it is true that H is generally unused.

> So what's the need to denote the list where the insertion occurs if it
> is ignored? In other words, couldn't node.insert_after and associates
> work with only two arguments?

It could, but the above two cases are both useful sometimes
in code running inside loops.

Best wishes,
Taco

Reply via email to