updatePolyfill

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