All packages

assign_when

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 ```
assign_when Nerves compatibility badge

Maintained on Hex by demerphq

Latest version
0.2.0
Last run
7 days ago
Checks
2

Assumed compatible: this package and its resolved dependencies passed host compilation and were identified as pure Elixir. No firmware targets were built.

Target / check Status Firmware size Run
host
host
pass — assign_when-0.2.0-1790769863778
Pure Elixir
pass — assign_when-0.2.0-1790769863778

Add this badge to your README

It updates itself as assign_when's compatibility is reassessed.

assign_when Nerves compatibility badge
Markdown
HTML