Fuzion Logo
fuzion-lang.dev — The Fuzion Language Portal

Map

lock_free.Map

(CTK 
type
:
property.hashable, CTV 
type
)
 ref
:
Mutable_Map CTK, CTV
 is
[Contains abstract features]
[Private constructor]
the ctrie

Type Parameters

Fields

read_only
 bool

Functions

(k lock_free.Map.CTK)
 => 
option lock_free.Map.CTV
[Contains abstract features]
lookup key k
a snapshot of the ctrie as sequence auf key-value tuples
(k lock_free.Map.CTK, v lock_free.Map.CTV)
 => 
unit
[Redefinition of  container.Mutable_Map.put]
[Contains abstract features]
add key value
if key is already present value is updated
(k lock_free.Map.CTK)
 => 
option lock_free.Map.CTV
[Redefinition of  container.Mutable_Map.remove]
[Contains abstract features]
remove key from ctrie
 => 
i32
[Redefinition of  container.Mutable_Map.size]
[Contains abstract features]
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)]
0.094dev (2025-06-18 15:08:51 GIT hash 89cffc23ae669b0898a5564fefbf793fcb8e5ca7 built by fridi@fzen)