Merge branch 'list-join' of git://github.com/gsmaverick/wren into gsmaverick-list-join

This commit is contained in:
Bob Nystrom
2015-01-24 14:39:45 -08:00
9 changed files with 76 additions and 18 deletions
+11
View File
@@ -18,6 +18,17 @@ If it returns `false`, stops iterating and returns `false`. Otherwise, returns
[1, 2, 3].all {|n| n > 2} // False.
[1, 2, 3].all {|n| n < 4} // True.
### **join**(sep)
Returns a string representation of the list. The string representations of the
elements in the list is concatenated with intervening occurrences of `sep`.
It is a runtime error if `sep` is not a string.
### **join**
Calls `join` with the empty string as the separator.
### **map**(transformation)
Creates a new list by applying `transformation` to each element in the