1
0
forked from Mirror/wren

Moved List.contains to Sequence.contains, added tests and docs

This commit is contained in:
Thorbjørn Lindeijer
2015-03-15 15:43:10 +01:00
parent 92c17e81f6
commit fc1dc4c54b
5 changed files with 51 additions and 18 deletions

View File

@ -30,6 +30,10 @@ Otherwise, returns `false`.
[1, 2, 3].any {|n| n < 1} // False.
[1, 2, 3].any {|n| n > 2} // True.
### **contains**(element)
Returns whether the sequence contains any element equal to the given element.
### **join**(sep)
Returns a string representation of the list. The string representations of the