Example: OpenList map
l
In Java:
l
static OpenList
map(Function1 f, OpenList L)
{
if( L.isEmpty() )
return nil;
else
return cons(f.apply(L.first()),
map(f, L.rest());
}