2 ms·
OOC, assuming `x` implements `List<Int>` (sorry for syntax mistakes, don't have a compiler here). So yes - generics and type safety included: x = x filter(
by viraptor 16y ago
OOC, assuming `x` implements `List<Int>` (sorry for syntax mistakes, don't have a compiler here). So yes - generics and type safety included:
x = x filter(func (i:Int)->Bool {i%3==0}) map(func (i:Int)->Int {i*i})
Edit: missed the multiplication