View Source Lens.Macros (lens v1.0.0)

Link to this section Summary

Functions

A convenience to define a lens that can be piped into with |>.

Same as deflens but creates private functions instead.

Link to this section Functions

Link to this macro

deflens(header, list)

View Source (macro)

A convenience to define a lens that can be piped into with |>.

deflens some_lens(foo, bar), do: some_lens_combination(foo, bar)

Is equivalent to:

def some_lens(foo, bar), do: some_lens_combination(foo, bar)
def some_lens(previous, foo, bar), do: Lens.seq(previous, some_lens_combination(foo, bar))
Link to this macro

deflensp(header, list)

View Source (macro)

Same as deflens but creates private functions instead.