a little shorter
This commit is contained in:
parent
8b7d575efe
commit
dfc75df407
@ -24,10 +24,7 @@ function ∇graph(v::IVertex, ∇, out = d())
|
||||
end
|
||||
|
||||
macro derive(ex)
|
||||
v = vertex(Flow.Do())
|
||||
for (k, x) in ∇graph(il(graphm(resolve_calls(ex))), @flow(∇))
|
||||
k = Symbol("∇", k)
|
||||
thread!(v, @v(Flow.Assign(k)(x)))
|
||||
end
|
||||
∇s = ∇graph(il(graphm(resolve_calls(ex))), @flow(∇))
|
||||
v = vertex(Flow.Do(), (@v(Flow.Assign(Symbol("∇", k))(v)) for (k, v) in ∇s)...)
|
||||
Expr(:quote, @> v cse syntax prettify)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user