Returns the current value of the aggregate, determined by the contents of the current window, and frees any resources allocated by earlier calls to step. The returned Result must come from calling one of the receiver's result methods.