diff options
| author | Paul Buetow <paul@buetow.org> | 2026-05-24 12:25:58 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-05-24 12:25:58 +0300 |
| commit | a864beae16f3a1deaf6d7e29d573899e8aedf960 (patch) | |
| tree | 24f2395b4bfd525297967b5404aa262bd73e2705 /docs/cli-usage.md | |
| parent | d2b9a38a8a24b7d8627e6a8b3fb005ac42f663c5 (diff) | |
rpn: extract nAryMetricOp and nAryScalarOp helpers in hyper ops
Extract shared patterns from hyper operators:
- nAryMetricOp: metric resolution, category validation, base unit
conversion, binary fn application, result conversion (used by
HyperAdd, HyperSubtract)
- nAryScalarOp: applies binary fn to pre-converted float64 values
and pushes with Cool metric (used by HyperDivide, HyperPower)
HyperMultiply stays inline (unique init-to-1 pattern).
HyperModulo stays inline (metric-aware with modulo-by-zero check).
Reduces operations_hyper.go from ~300 to ~268 lines.
Diffstat (limited to 'docs/cli-usage.md')
0 files changed, 0 insertions, 0 deletions
