Numbers.Protocols.Subtraction protocol (numbers v5.2.5)

Copy Markdown

For supporting Numbers.sub/2.

Summary

Types

t()

All the types that implement this protocol.

Functions

Subtracts the rhs number from the lhs number.

Types

t()

@type t() :: term()

All the types that implement this protocol.

Functions

sub(a, b)

@spec sub(t(), t()) :: t()

Subtracts the rhs number from the lhs number.