static LinkedList mapToLinkedList(Iterable l, O f) { new LinkedList x; if (l != null) for (O o : l) x.add(callF(f, o)); ret x; } static LinkedList mapToLinkedList(Iterable l, IF1 f) { ret mapToLinkedList(l, (O) f); }