为什么Hashtbl删除恢复以前的绑定.
Hashtbl.add t key1 Hashtbl.remove t key1 Hashtbl.remove t key1 => This should do anything but not restore the key1 !
无论如何,为什么我可以删除确定的东西,如果它被删除,那么应该遵循适当的流程?
val remove:('a,'b)t - >'a - > unit Hashtbl.remove tbl x删除tbl中x的当前绑定,恢复先前绑定(如果存在).如果x没有绑定在tbl中,它什么都不做.
ocaml
ocaml ×1