Added Sequence.list

This helper method turns any sequence into a List.
This commit is contained in:
Thorbjørn Lindeijer
2015-03-27 22:59:58 +01:00
parent 7d45dda383
commit b409569b6f
4 changed files with 34 additions and 0 deletions
+7
View File
@@ -65,6 +65,13 @@ It is a runtime error if `sep` is not a string.
Calls `join` with the empty string as the separator.
### **list**
Creates a [list](list.html) containing all the elements in the sequence.
:::dart
(1..3).list // [1, 2, 3]
### **map**(transformation)
Creates a new list by applying `transformation` to each element in the