added a bunch more JS test cases from standard library test cases

This commit is contained in:
James Strachan
2012-07-03 22:20:00 +01:00
parent 038f0af68f
commit 8f94f5e43f
6 changed files with 23 additions and 7 deletions
+8
View File
@@ -31,6 +31,14 @@ public inline fun arrayList<T>(vararg values: T) : ArrayList<T> {
return list
}
/** Returns a new HashSet with a variable number of initial elements */
public inline fun hashSet<T>(vararg values: T) : HashSet<T> {
val list = HashSet<T>()
for (value in values) {
list.add(value)
}
return list
}
/**
* Returns a new List containing the results of applying the given *transform* function to each [[Map.Entry]] in this [[Map]]