linksplatform / linksplatform/Data.Doublets.Sequences
Add simplest possible left and right "stairs" converters for sequences.
Nobody has claimed this yet.
- Dominant language
- C#
- Stars
- 1
- Forks
- 1
- PR merge metrics
- No merged PRs in 30d
Description


Do not use ∅, pictures are wrong.
## The correct source example is:
```
[1, 2, 3, 4]
```
## Two ways to transform this into sequences
## DescendingVariantConverter
This converter starts with a pair of two first elements and the goes "down the hill".
```
(((1 2) 3) 4)
```
Where `(1 2)` means, that it's ID used to make next pair and so on.
```
var doubletId = _links.GetOrCreate(sequence[0], sequence[1])
```
## AscendingVariantConverter
In that case, converter starts from the end of list/sequence/array.
The complete result will be:
```
(1 (2 (3 4)))
```
Where `(3 4)` means, that it's ID used to make next pair and so on.
```
var doubletId = _links.GetOrCreate(sequence[i-1], sequence[i])
```
## P.S.
Both sequences should be created at `./csharp/Platform.Data.Doublets.Sequences/Converters` folder.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting the ./csharp/Platform.Data.Doublets.Sequences/Converters folder and the sequence examples in this issue. Implement both converters so [1, 2, 3, 4] produces the specified descending and ascending nested pair forms, without using ∅ or the incorrect pictures.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- csharp
- Domain
- data
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100