Category talk:Wren-set: Difference between revisions
Content added Content deleted
(Added Set.toBag, Bag.toSet and Bag.values methods.) |
(→Source code: Renamed Bag.toList to Bag.toFlatList.) |
||
Line 361: | Line 361: | ||
// Copies the elements of the current instance to a List and returns the List. |
// Copies the elements of the current instance to a List and returns the List. |
||
// An element with value 'v' is repeated 'v' times. |
// An element with value 'v' is repeated 'v' times. |
||
toFlatList { |
|||
var l = [] |
var l = [] |
||
for (k in _m.keys) { |
for (k in _m.keys) { |