Changelog
View Source0.2.1 - 2025-10-09
Added
- Add usage-rules.md for LLMs
0.2.0 - 2025-10-09
Added
usage-rules.md
file with comprehensive guidance for AI agents on using the libraryok/1
function to wrap values in{:ok, value}
tupleserror/1
function to wrap values in{:error, value}
tuplesunwrap_or/2
function to extract values with defaultsunwrap_or_lazy/2
function for lazy default computationexpect!/2
function for unwrapping{:ok, value}
or raising a custom exceptionexpect_err!/2
function for unwrapping{:error, reason}
or raising a custom exceptionand_then/2
function for chaining operations on resultsmap/2
function for transforming success valuesmap_err/2
function for transforming error valuesis_ok/1
,is_err/1
,is_some/1
guards for pattern matchingflatten/1
function for flattening nested resultsall/1
function for combining lists of results (fail-fast)values/1
function for extracting success values from listspartition/1
function for splitting results into ok/error listsreplace/2
andreplace_lazy/2
for replacing success valuesreplace_err/2
andreplace_err_lazy/2
for replacing error valuesor_else/2
andor_else_lazy/2
for providing fallback valueswrap/1
andwrap/2
for creating exception structsmessage/1
for extracting exception messages- Support for multi-element tuples (e.g.,
{:ok, value, metadata}
) - Result and Option type definitions
- Guards for use in pattern matching
0.1.0 - 2020-09-27
Initial release.