Merge pull request #222 from bjorn/sequence_contains

Moved List.contains to Sequence.contains, added tests and docs
This commit is contained in:
Bob Nystrom
2015-03-18 07:54:55 -07:00
5 changed files with 51 additions and 18 deletions
+4
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