copyList, slightly deeper
l
static OpenList copyOpenList(OpenList orig)
{
if( orig.isEmpty() )
{
return OpenList.nil;
}
else
{
return cons(orig.first(),
copyOpenList(orig.rest()));
}
}
l
Still does not copy individual list elements (which
could be lists themselves).