c3p0 v0.3.1 C3P0.Blank protocol View Source

Provides a blankness check to see if something is blank/present

Empty lists, maps, strings, tuples and binaries are considered blank, as is nil.

Default structs are also considered blank

Link to this section Summary

Functions

true if the data is blank

Returns the value if present or nil

true if the data is not blank

Link to this section Types

Link to this section Functions

true if the data is blank

Link to this function

presence(data)

View Source
presence(term()) :: term() | nil

Returns the value if present or nil

Link to this function

present?(data)

View Source
present?(term()) :: boolean()

true if the data is not blank