Moar.Difference protocol (Moar v4.1.0)
View SourceA protocol that defines diff/2 for finding the difference between two terms.
Includes implementations for DateTime, NaiveDateTime, and BitString.
Summary
Functions
Returns the difference between a and b.
Types
@type t() :: term()
All the types that implement this protocol.
Functions
Returns the difference between a and b.
The fallback implementation uses Kernel.-/2 to subtract b from a.