We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Base
length(::BasicSymbolic)
1 parent 73805e2 commit 6bec5c2Copy full SHA for 6bec5c2
src/utils.jl
@@ -183,7 +183,7 @@ Base.length(l::LL) = length(l.v)-l.i+1
183
@inline car(l::LL) = l.v[l.i]
184
@inline cdr(l::LL) = isempty(l) ? empty(l) : LL(l.v, l.i+1)
185
186
-function Base.length(t::BasicSymbolic)
+function length(t::BasicSymbolic)
187
@match t.impl begin
188
Term(_...) => length(arguments(t)) + 1 # PIRACY
189
_ => 1
0 commit comments