Changelog
View Source0.2.1 - 2025-10-09
Added
- Add usage-rules.md for LLMs
0.2.0 - 2025-10-09
Added
usage-rules.mdfile with comprehensive guidance for AI agents on using the libraryok/1function to wrap values in{:ok, value}tupleserror/1function to wrap values in{:error, value}tuplesunwrap_or/2function to extract values with defaultsunwrap_or_lazy/2function for lazy default computationexpect!/2function for unwrapping{:ok, value}or raising a custom exceptionexpect_err!/2function for unwrapping{:error, reason}or raising a custom exceptionand_then/2function for chaining operations on resultsmap/2function for transforming success valuesmap_err/2function for transforming error valuesis_ok/1,is_err/1,is_some/1guards for pattern matchingflatten/1function for flattening nested resultsall/1function for combining lists of results (fail-fast)values/1function for extracting success values from listspartition/1function for splitting results into ok/error listsreplace/2andreplace_lazy/2for replacing success valuesreplace_err/2andreplace_err_lazy/2for replacing error valuesor_else/2andor_else_lazy/2for providing fallback valueswrap/1andwrap/2for creating exception structsmessage/1for 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.