Get

stdtraits~ Get

Source:

Trait to get a value from a con­tainer like type.

Im­ple­men­ted for Ob­ject, String, Ar­ray, Map.

In­ter­face

(c: Con­tainer, k: Key) => v: Value|un­defined. Will re­turn un­defined if the key could not be found.

Laws

  • Must not be im­ple­men­ted for set-like data struc­tures