Open jocontacter opened 3 years ago
Don't use Select with DynamicData, use the Transform
operator.
Also consider not using Tuple, try ValueTuple's and you can use the C# inbuilt way of using them (list[0], list[1])
, ValueTuple have performance and memory advantages over Tuple's
Don't use Select with DynamicData, use the
Transform
operator.Also consider not using Tuple, try ValueTuple's and you can use the C# inbuilt way of using them
(list[0], list[1])
, ValueTuple have performance and memory advantages over Tuple's
That is a problem - i can't do Transform() or Bind() on the result of Buffer() operator.
This is what i want to get: I have elements list: [a1,a2,a3,a4,...] which i want to convert to pairs -> (a1,a2),(a3,a4),(a5,a6)... How can i get a result like this?
Thanks for advice about ValueTuple.
You can do after you convert to a myObservable.ToObservableChangeSet()
You can do after you convert to a
myObservable.ToObservableChangeSet()
this is not what i need
Well that's useful information to know before you post since you only mention observable above
Sorry for misleading.. In short, i'm stuck at this place
i need to pair up my original list like
Observable<A>.Buffer(2).Select(list => Tuple.Create(list[0], list[1]))
but there i have IChangeSet's which converts toTuple<IChangeSet<A>,IChangeSet<A>>
but not toIChangeSet<Tuple<A,A>>
so i can't do.Bind(out pairs)
on it