Skip to content

Commit

Permalink
Remove Base module identifier from length(::BasicSymbolic) method
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenszhu committed Sep 29, 2024
1 parent 73805e2 commit 6bec5c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ Base.length(l::LL) = length(l.v)-l.i+1
@inline car(l::LL) = l.v[l.i]
@inline cdr(l::LL) = isempty(l) ? empty(l) : LL(l.v, l.i+1)

function Base.length(t::BasicSymbolic)
function length(t::BasicSymbolic)
@match t.impl begin
Term(_...) => length(arguments(t)) + 1 # PIRACY
_ => 1
Expand Down

0 comments on commit 6bec5c2

Please sign in to comment.