#1 - Do you plan on developing a built-in "count" distinct measure in the future?
I saw the documentation you linked and I don't understand these two objects: state, context.
#2 - Could you give a more detailed explanation about them? When I try to return the context it only returns Object object;
#3 - I've seen that you're using state.accumulator to store the value.. Is there any way to use the state to store an array of values?