Attributes.update

You're seeing just the function update, go back to Attributes module for more information.
Link to this function

update(module, path, lambda)

View Source

Updates attribute in path.

Available at compile time only.

Example

Attributes.update(MyModule, [:path], & &1 + 1)
Link to this function

update(module, path, default, lambda)

View Source

Updates attribute in path with default lambda input value.

Available at compile time only.

Example

Attributes.update(MyModule, [:path], 41, & &1 + 1)