View Source Moar.Difference protocol (Moar v1.20.0)
A protocol that defines diff/2 for finding the difference between two terms.
Includes implementations for DateTime, NaiveDateTime, and BitString.
Link to this section Summary
Functions
Returns the difference between a and b.
Link to this section Types
@type t() :: term()
Link to this section Functions
Returns the difference between a and b.
The fallback implementation uses Kernel.-/2 to subtract b from a.