Skip to content

Calling the pushback method multiple times does not seem to work as expected maybe #70

@fs812

Description

@fs812

public pushback(item: T) {

Calling the pushback method multiple times does not seem to work as expected.

current buffer: [1,2,3]
first time call this.pushback(30), and buffer is [1,2,30]
second time call this.pushback(40), and buffer is [1,40,30]. The expected values ​​here should be [1,2,40]

I don't know if this will affect the calculation of the indicator, because I saw that the CCI indicator indirectly uses this method.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions