Setdefault

stdtraits~ Setdefault

Source:

Set a de­fault value in a con­tainer.

This trait is im­pli­citly im­ple­men­ted if the con­tainer im­ple­ments Has, Get and Set.

In­ter­face

(c: Con­tainer, v: Value, k: Key) => r: Value.