Skip to content

✨ feat(mq-lang): add tally, frequencies_by, comp, juxt, complement builtins#2045

Merged
harehare merged 2 commits into
mainfrom
feat/functional-builtins
Jul 19, 2026
Merged

✨ feat(mq-lang): add tally, frequencies_by, comp, juxt, complement builtins#2045
harehare merged 2 commits into
mainfrom
feat/functional-builtins

Conversation

@harehare

Copy link
Copy Markdown
Owner

Summary

Adds frequency-counting helpers (tally/frequencies_by) alongside the existing group_by/sort_by/*_by family, and function-composition utilities (comp/juxt/complement) enabled by mq's first-class functions. comp and juxt take a variadic list of functions.

Type of Change

  • 🐛 Bug fix
  • ✨ New feature
  • ♻️ Refactor
  • 📝 Documentation
  • ⚡ Performance
  • ✅ Test
  • 📦 Build / dependencies
  • 👷 CI

Checklist

  • I ran cargo fmt and cargo clippy and addressed any warnings
  • I ran just test-all and all tests pass
  • I added or updated tests covering this change
  • I updated relevant documentation (/docs, crate README.md) if needed
  • I added a changelog entry if this is a user-facing change

Additional Context

…iltins

Adds frequency-counting helpers (tally/frequencies_by) alongside the
existing group_by/sort_by/*_by family, and function-composition
utilities (comp/juxt/complement) enabled by mq's first-class functions.
comp and juxt take a variadic list of functions.
@codspeed-hq

codspeed-hq Bot commented Jul 19, 2026

Copy link
Copy Markdown

Merging this PR will improve performance by 27.79%

⚡ 1 improved benchmark
✅ 30 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
eval_macro_expansion_simple 132.4 µs 103.6 µs +27.79%

Tip

Curious why this is faster? Comment @codspeedbot explain why this is faster on this PR, or directly use the CodSpeed MCP with your agent.


Comparing feat/functional-builtins (2fa45ee) with main (3b042e4)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (de94b5b) during the generation of this report, so 3b042e4 was used instead as the comparison base. There might be some changes unrelated to this pull request in this report.

@harehare
harehare force-pushed the feat/functional-builtins branch from 8fe62bd to 2fa45ee Compare July 19, 2026 12:33
@harehare
harehare merged commit 63682b6 into main Jul 19, 2026
11 checks passed
@harehare
harehare deleted the feat/functional-builtins branch July 19, 2026 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant