These are chat archives for MetaStack-pl/MetaRx

11th
Jan 2016
Khunakon
@Khunakon
Jan 11 2016 07:10
Greetings
Khunakon
@Khunakon
Jan 11 2016 07:18
I would like to know about DictDelta.
Tim Nieradzik
@tindzk
Jan 11 2016 09:00
@Khunakon Sure, what's your question?
Khunakon
@Khunakon
Jan 11 2016 15:30
Sorry. It's DeltaDict.
The method 'mapTo' return DeltaDict.
It's not mentioned in your manual doc.
What is it for? How can I use it?
Tim Nieradzik
@tindzk
Jan 11 2016 21:01
@Khunakon Its purpose is to convert the buffer into a dictionary.

Here is an example from the test cases (DictTest):

 val buf = Buffer(1, 2, 3)
 val map = buf.mapTo(_ => -1).buffer

map is now a set containing: (1, -1), (2, -1), (3, -1).