Fix Brex.none/1 behaviour for empty lists
The behaviour of Brex.none/1
was confusing for an empty list of rules, due to simply inverting the result of Brex.all/1
. This release introduces a special handling for an empty list of rules:
Before
iex> rules |> Brex.none() |> Brex.satisfies?(:whatever)
false
After
iex> rules |> Brex.none() |> Brex.satisfies?(:whatever)
true