feat: rename Sequence.list method to toList and update all call sites

The `.list` method on Sequence was renamed to `.toList` to better reflect its
purpose of converting a sequence into a List object. This change updates the
method definition in `builtin/core.wren` and `src/vm/wren_core.c`, along with
all test files that called `.list` on sequences, maps, ranges, and custom
sequence implementations. The test file `test/core/sequence/list.wren` was also
renamed to `test/core/sequence/to_list.wren` to match the new method name.
This commit is contained in:
Bob Nystrom
2015-04-03 18:22:34 +00:00
parent b6e2229b58
commit 446e8b2ca9
7 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -91,7 +91,7 @@ class Sequence {
return result
}
list {
toList {
var result = new List
for (element in this) {
result.add(element)