8. Dart - List Functions

 Defining a List of strings:

List<String> Alist = [

"a",

"b",

"c",

]


A List function:

Alist.map((letter){

print(letter);

})

// this will print every letter in the list.


Can transform into arrow function:

Alist.map((letter) => print(letter))

Comments

Popular posts from this blog

2. FreeCodeCamp - Dynamic Programming - Learn to Solve Algorithmic Problems & Coding Challenges

20. Data Analytics - Analyze Data to Answer Questions - Week 1

3. Algorithms - Selection Sort