Better argument validation for some list methods.

This commit is contained in:
Bob Nystrom
2014-01-02 07:32:00 -08:00
parent a0c32f2e6e
commit a89386b4e8
25 changed files with 133 additions and 65 deletions
+5
View File
@@ -0,0 +1,5 @@
var a = ["one", "two", "three", "four"]
IO.write(a.iteratorValue(0)) // expect: one
IO.write(a.iteratorValue(1)) // expect: two
IO.write(a.iteratorValue(2)) // expect: three
IO.write(a.iteratorValue(3)) // expect: four