Open mationai opened 8 years ago
Also, how to print values that doesn't have toString
method like a list?
@fuzzthink For the first thing, you need to specify the return type of the function you're passing. Like this:
var l List<int> = [1,2]
l.map<int>((x int) => x + 1)
How are List methods like map and filter used? Tried the following:
gave error: