ae v0.0.3053 (2021-06-01T17:26:23Z)
Home
Dub
Repo
updateVoid
ae
utils
aa
Polyfill for object.update with void update function
void
updateVoid
(V[K] aa, K key, C create, U update)
static if
(
!haveObjectUpdateWithVoidUpdate
)
void
updateVoid
(
K
V
C
U
)
(
ref
V
[
K
]
aa
,
K
key
,
scope
C
create
,
scope
U
update
)
if
(
is
(
typeof
(
create
()) :
V
) &&
is
(
typeof
(
update
(
aa
[
K.init
])) ==
void
)
)
alias
updateVoid
=
object
.
update
Meta
Source
See Implementation
ae
utils
aa
aliases
HashSet
MultiAA
OrderedMap
OrderedSet
update
functions
aaGet
addNew
getOrAdd
merge
nonNull
orderedMap
orderedSet
pairs
require
sortedPairs
sortedValues
toAA
toSet
updatePolyfill
updateVoid
structs
HashCollection
KeyValuePair
Polyfill for object.update with void update function