帮忙看看???这里应该填什么# Java - 爪哇娇娃
f*m
1 楼
Design and implement a static method map that takes two arguments, a “
function” f and a list l, and returns a new list generated from applying f
to each element of l. The original list l and its elements remain unchanged.
The method would be declared as follows:
public static java.util.List map(??? f, java.util.List l)
Write code to implement the map function and clearly define what ??? should
be.
function” f and a list l, and returns a new list generated from applying f
to each element of l. The original list l and its elements remain unchanged.
The method would be declared as follows:
public static java.util.List map(??? f, java.util.List l)
Write code to implement the map function and clearly define what ??? should
be.