View Source maps_in (maps_in v0.1.0)

Module to handle nested maps.

Link to this section Summary

Link to this section Functions

-spec get(Path, Map) -> Value when Path :: [term()], Map :: map(), Value :: term().
get/2.
-spec get(Path, Map, Default) -> Value | Default
       when Path :: [term()], Map :: map(), Default :: term(), Value :: term().
get/3.
Link to this function

get_and_update(Path, Fun, Map1)

View Source
-spec get_and_update(Path, Fun, Map1) -> Map2
                  when
                      Path :: [term()],
                      Fun :: fun((term()) -> term()),
                      Map1 :: map(),
                      Map2 :: map().
get_and_update/3.
-spec put(Path, Value, Map1) -> Map2
       when Path :: [term()], Value :: term(), Map1 :: map(), Map2 :: map().
put/3.
Link to this function

update(Path, Value, Map1)

View Source
-spec update(Path, Value, Map1) -> Map2
          when Path :: [term()], Value :: term(), Map1 :: map(), Map2 :: map().
update/3.