nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge: Runtime function
[nit.git]
/
lib
/
standard
/
collection
/
array.nit
diff --git
a/lib/standard/collection/array.nit
b/lib/standard/collection/array.nit
index
68f84e7
..
44ea5d3
100644
(file)
--- a/
lib/standard/collection/array.nit
+++ b/
lib/standard/collection/array.nit
@@
-536,7
+536,7
@@
end
# Associative arrays implemented with an array of (key, value) pairs.
# Associative arrays implemented with an array of (key, value) pairs.
-class ArrayMap[K: Object, E]
+class ArrayMap[K, E]
super CoupleMap[K, E]
# O(n)
super CoupleMap[K, E]
# O(n)
@@
-618,7
+618,7
@@
class ArrayMap[K: Object, E]
end
end
end
end
-private class ArrayMapKeys[K: Object, E]
+private class ArrayMapKeys[K, E]
super RemovableCollection[K]
# The original map
var map: ArrayMap[K, E]
super RemovableCollection[K]
# The original map
var map: ArrayMap[K, E]
@@
-638,7
+638,7
@@
private class ArrayMapKeys[K: Object, E]
redef fun remove_all(key) do self.remove(key)
end
redef fun remove_all(key) do self.remove(key)
end
-private class ArrayMapValues[K: Object, E]
+private class ArrayMapValues[K, E]
super RemovableCollection[E]
# The original map
var map: ArrayMap[K, E]
super RemovableCollection[E]
# The original map
var map: ArrayMap[K, E]