26 lines
474 B
Java
26 lines
474 B
Java
|
|
public class Lambda2
|
|
{
|
|
public static void main(List<String> args){
|
|
auto listOfStrings = new List<String>();
|
|
auto listOfObjects;
|
|
//listOfObjects = map(listOfStrings, (a) -> a);
|
|
}
|
|
/*
|
|
public static <I,O> List<O> map(List<I> input, Function<I,O> func) {
|
|
List<O> output;
|
|
output = new List<O>();
|
|
output.add(func.apply(input.get()));
|
|
return output;
|
|
}
|
|
*/
|
|
}
|
|
|
|
class List<A>{
|
|
A get();
|
|
void add(A);
|
|
}
|
|
|
|
class Function<A,B>{
|
|
B apply(A a);
|
|
} |