ae v0.0.2845 (2020-11-29T12:45:19Z)
Home
Dub
Repo
updatePolyfill
ae
utils
aa
Polyfill for object.update
static if
(
!__traits(hasMember, object, "update")
)
void
updatePolyfill
(
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
])) :
V
)
)
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