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