ndsvw / ndsvw/Fluent-Random-Picker

Allow chaining Values(...).AndValues(...) ?

Open
#13 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

idea
Dominant language
C#
Stars
40
Forks
2
Avg merge
2d 17h
Merged PRs (30d)
2

Description

What's possible in this case:

  • Out.Of().Values(...).AndValues(...).AndValues(...)...
  • Out.Of().Values(...).WithWeigts(...).AndValues(...).WithWeigts(...)...

What's not possible in this case:

  • Out.Of().Values(...).WithWeigts(...).AndValues(...).Pick(...);
  • Out.Of().Values(...).AndValues(...).WithWeigts(...).Pick(...);

What about percentages?

Do all of them sum of to 100 or each of the .Values(...).WithPercentages(...) blocks?

Contributor guide

Open the contributing guide

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.

Research direction

Start by reviewing the fluent API entry points for Values(...), AndValues(...), WithWeigts(...), WithPercentages(...), and Pick(...), then trace how existing chaining and weighting behavior is defined. Clarify whether percentages apply per Values block or across the full chain, and document the intended supported chaining behavior before implementation.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.