Skip to content

Commit

Permalink
feat: extend and refactor when-then-otherwise functionality
Browse files Browse the repository at this point in the history
- Wrap literals passed to `then`, `otherwise` in `alt.value`
  - opt-out as default
  - added overloads
- Wrap kwargs passed to `when` as `alt.datum.key == (value)`
- Accept multiple predicates in `when`, reducing all predicates as an `AND` reduction.
- Refactor to reduce code duplication
- Added some initial docs
  • Loading branch information
dangotbanned committed Jun 2, 2024
1 parent f1d9dc2 commit 38d425f
Showing 1 changed file with 300 additions and 70 deletions.
Loading

0 comments on commit 38d425f

Please sign in to comment.