Juggernaut.Operators.OperandSwap (Juggernaut v0.4.0)

Copy Markdown View Source

Reverses the first two operands of a non-commutative operation (Mutare operand_swap): -, /, **, <>, ++, --, div, rem, and the order-sensitive calls before?, after?, compare and diff of Date, Time, DateTime and NaiveDateTime, Version.compare/2, MapSet.difference/2 and MapSet.subset?/2. Identical operands are skipped. A piped call swaps the piped value too.