Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal
JavaScript seems to be disabled. Functionality is limited.

map

lock_free.map

§
(CTK 
type
, CTV 
type
)
:
Mutable_Map CTK, CTV
 is
 
[Private constructor]

the ctrie

Type Parameters

Fields

§
read_only
 bool

Functions

§
(k lock_free.map.CTK, v lock_free.map.CTV)
 => 
unit  
[Redefinition of  container.Mutable_Map.add]
add key value
if key is already present value is updated
§
(k lock_free.map.CTK)
 => 
option lock_free.map.CTV  
lookup key k
a snapshot of the ctrie as sequence auf key-value tuples
§
(k lock_free.map.CTK)
 => 
option lock_free.map.CTV  
[Redefinition of  container.Mutable_Map.remove]
remove key from ctrie
§
 => 
i32  
[Redefinition of  container.Mutable_Map.size]
the size of the ctrie
take a snapshot of the ctrie

Type Functions

initialize a new ctrie
lock_free.map.from_entries -- routine to initialize a ctrie from a sequence of key value tuples

This feature creates an instance of a ctrie.

example: lock_free.map.from_entries [(key1, value1), (key2, value2)]