[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Mar 10 13:36:17 1994 
Subject:Re: Another Pop-11 style question: nexstates 
From:"A.Sloman" 
Volume-ID:940310.02 

> To generate the next-states, what is wrong with using
>     for choice in available do
>         delete(choice, available) -> remainder;
>         ....
> etc.?

I forgot to say in my original that I had considered this, but felt
it was confusing in relation to lists with repeated elements. You
have to use delete(choice, available, 1) and then explain that it
doesn't matter that with repeated items only the first occurrence would
be deleted. This can be made non-visible by using a sorted list in the
first place (perhaps you were assuming it was sorted), but people might
be building up options in an order for some reason.

But perhaps those are non-overriding considerations. I am tempted!

Aaron