get_global_map() does not support the del/1 function. Since it is a map, I would expect is should support del/1..
Plain maps:
"""
Picat> X=new_map(), X.put(a,1),X.put(b,2),X.del(a)
X = (map)[b = 2]
yes
"""
But for get_global_map an error is thrown:
"""
Picat> X=get_global_map(), X.put(a,1),X.put(b,2),X.del(a)
*** error(hashtable_expected($ghshtb(43,0)),hashtable_del($ghshtb(43,0),a))
"""
As for get_table_map()
"""
Picat> X=get_table_map(), X.put(a,1),X.put(b,2),X.del(a)
*** error(hashtable_expected($thshtb(43,0)),hashtable_del($thshtb(43,0),a))
"""
Though it works for get_heap_map()
"""
Picat> X=get_heap_map(), X.put(a,1),X.put(b,2),X.del(a)
X = (map)[b = 2]
yes
"""
Best,
Hakan