demerphq

Total Owned Packages
1

Total Downloads
26

  • assign_when0.2.0

    26 Downloads

    Allows the use of `when` clauses on assignment statements as an alternative to using `if`, avoiding the need for boilerplate `else` clauses which return the original variables when the condition is `false`. For instance:

    ```elixir x = 1 when x == nil ```