Bunch v0.1.0 Bunch.Struct View Source
A bunch of functions for easier manipulation on structs.
Link to this section Summary
Functions
Wraps Bunch.Access.delete_in/2
to make it work with structs that do not
implement Access
behaviour
Wraps Bunch.Access.get_and_update_in/3
to make it work with structs that do not
implement Access
behaviour
Wraps Bunch.Access.get_in/2
to make it work with structs that do not
implement Access
behaviour
Wraps Bunch.Access.pop_in/2
to make it work with structs that do not
implement Access
behaviour
Wraps Bunch.Access.put_in/3
to make it work with structs that do not
implement Access
behaviour
Wraps Bunch.Access.update_in/3
to make it work with structs that do not
implement Access
behaviour
Link to this section Functions
delete_in(struct(), Access.key() | [Access.key()]) :: struct()
Wraps Bunch.Access.delete_in/2
to make it work with structs that do not
implement Access
behaviour.
get_and_update_in(struct(), Access.key() | [Access.key()], (a -> a)) :: {a, struct()} when a: Access.value()
Wraps Bunch.Access.get_and_update_in/3
to make it work with structs that do not
implement Access
behaviour.
get_in(struct(), Access.key() | [Access.key()]) :: Access.value()
Wraps Bunch.Access.get_in/2
to make it work with structs that do not
implement Access
behaviour.
pop_in(struct(), Access.key() | [Access.key()]) :: {Access.value(), struct()}
Wraps Bunch.Access.pop_in/2
to make it work with structs that do not
implement Access
behaviour.
put_in(struct(), Access.key() | [Access.key()], Access.value()) :: Access.value()
Wraps Bunch.Access.put_in/3
to make it work with structs that do not
implement Access
behaviour.
update_in( struct(), Access.key() | [Access.key()], (Access.value() -> Access.value()) ) :: struct()
Wraps Bunch.Access.update_in/3
to make it work with structs that do not
implement Access
behaviour.