Add basis for types in k, and move to new poset setup (depend on individual imports, functions, types, and global variables)

This commit is contained in:
Nathan Braswell
2018-06-22 20:58:47 -04:00
parent 6ffe7aee46
commit e851d0eac5
6 changed files with 354 additions and 68 deletions

View File

@@ -66,7 +66,7 @@ obj map<T,U> (Object, Serializable) {
fun contains_key(key: ref T): bool {
return keys.contains(key)
}
fun contains_value(value: ref U): bool {
fun contains_value<V>(value: ref V): bool {
return values.contains(value)
}
fun get(key: ref T): ref U {
@@ -86,7 +86,7 @@ obj map<T,U> (Object, Serializable) {
return get(key)
return default_val
}
fun reverse_get(value: ref U): ref T {
fun reverse_get<V>(value: ref V): ref T {
/*return values.get(keys.find(key))*/
var value_loc = values.find(value)
if (value_loc == -1)