Open Konard opened 1 year ago
Do not use ∅, pictures are wrong.
[1, 2, 3, 4]
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.
(1 2)
var doubletId = _links.GetOrCreate(sequence[0], sequence[1])
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.
(3 4)
var doubletId = _links.GetOrCreate(sequence[i-1], sequence[i])
Both sequences should be created at ./csharp/Platform.Data.Doublets.Sequences/Converters folder.
./csharp/Platform.Data.Doublets.Sequences/Converters
Do not use ∅, pictures are wrong.
The correct source example is:
Two ways to transform this into sequences
DescendingVariantConverter
This converter starts with a pair of two first elements and the goes "down the hill".
Where
(1 2)
means, that it's ID used to make next pair and so on.AscendingVariantConverter
In that case, converter starts from the end of list/sequence/array.
The complete result will be:
Where
(3 4)
means, that it's ID used to make next pair and so on.P.S.
Both sequences should be created at
./csharp/Platform.Data.Doublets.Sequences/Converters
folder.