Copyright © 2016 X. Van de Woestyne
Version: 0.1.0
Authors: X. Van de Woestyne (xaviervdw@gmail.com).
result() = #result{succeeded = boolean(), value = term()}
fail/1 | determine if a coercion is a failure. |
fmap/2 | Apply and wrap a function to a result. |
is_ascii_char/1 | determine if an integer is a potential Ascii Char. |
map/2 | Apply a function to a result. |
maybe_string/1 | check if a list is maybe a string. |
new/2 | Create a new result. |
of_string/1 | an ugly and magic coercion from string to term(). |
of_string/2 | try coercion or define a default value the suceeded flag is preserved. |
succeed/1 | determine if a coercion is a success. |
to_atom/1 | try to coerce a term to an atom. |
to_atom/2 | try coercion or define a default value the suceeded flag is preserved. |
to_bool/1 | try to coerce a term to a boolean. |
to_bool/2 | try coercion or define a default value the suceeded flag is preserved. |
to_float/1 | try to coerce a term to a float. |
to_float/2 | try coercion or define a default value the suceeded flag is preserved. |
to_int/1 | try to coerce a term to an integer. |
to_int/2 | try coercion or define a default value the suceeded flag is preserved. |
to_string/1 | try to coerce term into string. |
to_string/2 | Replace value if coercion failed the suceeded flag is preserved. |
traverse/1 | Unabstract result as a tuple. |
unless/2 | Replace value if coercion failed the suceeded flag is preserved. |
value/1 | extract the value of a wrapped result. |
fail(Coercion::result()) -> boolean()
determine if a coercion is a failure
Apply and wrap a function to a result
is_ascii_char(X::integer()) -> boolean()
determine if an integer is a potential Ascii Char
map(F::function(), Result::result()) -> term()
Apply a function to a result
maybe_string(List::list()) -> boolean()
check if a list is maybe a string
new(Flag::boolean(), Value::term()) -> result()
Create a new result
of_string(String::string()) -> result()
an ugly and magic coercion from string to term()
of_string(Str::string(), Default::term()) -> result()
try coercion or define a default value the suceeded flag is preserved
succeed(Coercion::result()) -> boolean()
determine if a coercion is a success
to_atom(Obj::term()) -> result()
try to coerce a term to an atom
to_atom(Term::term(), Default::term()) -> result()
try coercion or define a default value the suceeded flag is preserved
to_bool(Obj::term()) -> boolean()
try to coerce a term to a boolean
to_bool(Term::term(), Default::term()) -> result()
try coercion or define a default value the suceeded flag is preserved
to_float(Obj::term()) -> result()
try to coerce a term to a float
to_float(Term::term(), Default::term()) -> result()
try coercion or define a default value the suceeded flag is preserved
to_int(Obj::term()) -> result()
try to coerce a term to an integer
to_int(Term::term(), Default::term()) -> result()
try coercion or define a default value the suceeded flag is preserved
to_string(Term::any()) -> string()
try to coerce term into string
to_string(Term::term(), Default::term()) -> result()
Replace value if coercion failed the suceeded flag is preserved
traverse(Result::result()) -> {boolean(), term()}
Unabstract result as a tuple
Replace value if coercion failed the suceeded flag is preserved
value(Coercion::result()) -> term()
extract the value of a wrapped result
Generated by EDoc, Jan 21 2017, 17:00:08.