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

Map

lock_free.Map

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

Type Parameters

Fields

read_only
 bool

Functions

(k CTK)
 => 
option CTV
[Redefinition of  container.Mutable_Map.get]
lookup key k
a snapshot of the ctrie as sequence auf key-value tuples
(k CTK, v CTV)
 => 
unit
[Redefinition of  container.Mutable_Map.put]
add key value
if key is already present value is updated
remove key from ctrie
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.095dev (2025-08-15 12:02:22 GIT hash 301b5b75e77076d091b38f555473f9f0e31e5b5c built by fridi@fzen)