Skip to content

Commit

Permalink
oh wait I actually killed length
Browse files Browse the repository at this point in the history
  • Loading branch information
exaexa committed Jun 5, 2024
1 parent aaab275 commit 99abd55
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/value.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,6 @@ complexity from something around `O(n^2)` to `O(n)` (with a little larger
constant factor.
"""
function preduce(op, xs; init = zero(eltype(xs)), stack_type = eltype(xs))
n = length(xs)
n == 0 && return init

# This works by simulating integer increment and carry to organize the
# additions in a (mildly begin-biased) tree. `used` stores the integer,
# `val` the associated values.
Expand Down

0 comments on commit 99abd55

Please sign in to comment.