Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Feature Request] Unify `Support` syntax for all Distributions

Open
#222 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
32/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Quiet
Tech stack
fsharp
Domain
data

Research direction

Start in src/FSharp.Stats/Distributions/Discrete.fs at the Bernoulli and hypergeometric Support members referenced in the issue. Compare their current list and tuple forms, then review the surrounding distribution APIs before proposing a unified syntax. Done requires an agreed design and consistent Support interface across the distributions.

Written by the indexing model from the issue text.

Description

refactor

Is your feature request related to a problem? Please describe.
The syntax for the static member Support ... functions are written in a different syntax.

Bernoulli has a list, whereas hypergeometric returns a tuple.

https://github.com/fslaborg/FSharp.Stats/blob/262f1acf2cbeeaf008c272774d008d6d462f1022/src/FSharp.Stats/Distributions/Discrete.fs#L55-L57

https://github.com/fslaborg/FSharp.Stats/blob/262f1acf2cbeeaf008c272774d008d6d462f1022/src/FSharp.Stats/Distributions/Discrete.fs#L228-L230

Describe the solution you'd like
Maybe use this issue to discuss not only unifying the syntax, but reworking it to be more intuitive and usable.

Dominant language
F#
Stars
228
Forks
58
Avg merge
5d 13h
Merged PRs (30d)
2

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from fslaborg/FSharp.Stats

All issues in fslaborg/FSharp.Stats

Similar issues

More Data Engineering issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.