assign_when 0.2.0

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 ```

License

Apache-2.0

Downloads

0 200 400 600 800 Last 30 days, all versions
  • 4 349 4 349
    this version
  • 78 78
    yesterday
  • 1 136 1 136
    last 7 days
  • 4 372 4 372
    all time

Versions (2)

Dependencies (0)

Recent Activity

  • Apr 19, 2025 Publish documentation for release 0.2.0
  • Apr 19, 2025 Publish release 0.2.0
  • Apr 19, 2025 Publish documentation for release 0.1.0
  • Apr 19, 2025 Publish release 0.1.0

Show All Activities

Config

mix.exs
rebar.config
erlang.mk

Checksum

Build Tools

mix

Owners

Publisher

demerphq

Dependents (0)