JavaCompilerCore/test/javFiles/Lambda2.jav

26 lines
474 B
Plaintext
Raw Permalink Normal View History

2017-05-31 15:10:50 +00:00
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);
}