mostly working
This commit is contained in:
parent
26eaa1d898
commit
5f42a580a9
47 changed files with 914 additions and 637 deletions
|
|
@ -149,7 +149,7 @@ func (b *ValueBuffer) TrimExcess() {
|
|||
}
|
||||
|
||||
// Array returns the ring buffer, in order, as an array.
|
||||
func (b *ValueBuffer) Array() SeqArray {
|
||||
func (b *ValueBuffer) Array() Array {
|
||||
newArray := make([]float64, b.size)
|
||||
|
||||
if b.size == 0 {
|
||||
|
|
@ -163,7 +163,7 @@ func (b *ValueBuffer) Array() SeqArray {
|
|||
arrayCopy(b.array, 0, newArray, len(b.array)-b.head, b.tail)
|
||||
}
|
||||
|
||||
return SeqArray(newArray)
|
||||
return Array(newArray)
|
||||
}
|
||||
|
||||
// Each calls the consumer for each element in the buffer.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue