Juggernaut.Operators.GuardDrop (Juggernaut v0.4.0)

Copy Markdown View Source

Removes the when guard of a function head or a single-pattern clause (Mutare guard_drop): def, defp, case, receive, fn and generators.

As in Mutare, it applies only when no other enabled family mutates inside the guard; Juggernaut.Mutator drops it otherwise, since it knows every mutant of the clause.