Skip to content

Commit 3304230

Browse files
committed
implement append traces with multiplex
1 parent 323793d commit 3304230

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/traces.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,13 @@ for f in (:push!, :pushfirst!, :append!, :prepend!)
148148
throw(ArgumentError("unknown trace name: $k"))
149149
end
150150
end
151+
@eval function Base.$f(t::MultiplexTraces{names}, x::RelativeTrace{left, right}) where {names, left, right}
152+
if right == 0
153+
$f(t[first(names)].trace, x.trace)
154+
else
155+
$f(t[last(names)].trace, x.trace)
156+
end
157+
end
151158
end
152159

153160
#####

0 commit comments

Comments
 (0)