static long sum(OpenList L)
{
long result = 0;
for( ; L.nonEmpty() ; L = L.rest() )
{
long first = ((Long)L.first()).longValue();
result += first;
}
return result;
}
An Iterative Reduce Pattern
lcollapse list into a value using ordinary iteration
unwrap