Skip to content

Sketch of an idea for statistics#15

Draft
scottmcm wants to merge 1 commit intorscarson:masterfrom
scottmcm:stats-aggregators
Draft

Sketch of an idea for statistics#15
scottmcm wants to merge 1 commit intorscarson:masterfrom
scottmcm:stats-aggregators

Conversation

@scottmcm
Copy link
Copy Markdown
Contributor

@scottmcm scottmcm commented Apr 2, 2026

Your note about tuples in #12 (comment)

I have a lot of functions that just return more than one statistic as a tuple so that I don't have to recalculate them, but that's pretty clumsy

Made me think of taking that ad-hoc way but turning it extensible by having types that can be combined into tuples so you can use any combination of them.

So here's a sketch of that idea 🙂

Definitely a draft in that I haven't really thought through the implications of it for more than the two that I implemented, and it might be that this makes no sense for more complex things without well-known online versions. But maybe it'll inspire you to come up with a better version. (Feel free to just close if you go a different direction.)

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